aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-15 08:01:54 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-15 08:01:54 +0000
commit557b6b86b0b153b98f06897756d2ebd5ca53b78a (patch)
tree7eb2b76e7faa7bb5c89f20fee68571425aea7ce0 /tmux.h
parent0591d9ff12b29c552f7baf4c199015cfd3cbf8a9 (diff)
downloadrtmux-557b6b86b0b153b98f06897756d2ebd5ca53b78a.tar.gz
rtmux-557b6b86b0b153b98f06897756d2ebd5ca53b78a.tar.bz2
rtmux-557b6b86b0b153b98f06897756d2ebd5ca53b78a.zip
Add a couple of extra option types, and implement show-options command.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index fadd9329..69479a05 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.141 2008-06-14 16:47:20 nicm Exp $ */
+/* $Id: tmux.h,v 1.142 2008-06-15 08:01:54 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -557,11 +557,15 @@ struct options_entry {
enum {
OPTIONS_STRING,
- OPTIONS_NUMBER
+ OPTIONS_NUMBER,
+ OPTIONS_KEY,
+ OPTIONS_COLOURS
} type;
union {
char *string;
long long number;
+ int key;
+ u_char colours;
} value;
SPLAY_ENTRY(options_entry) entry;
@@ -772,7 +776,11 @@ void printflike3 options_set_string(
struct options *, const char *, const char *, ...);
char *options_get_string(struct options *, const char *);
void options_set_number(struct options *, const char *, long long);
-int options_get_number(struct options *, const char *);
+long long options_get_number(struct options *, const char *);
+void options_set_key(struct options *, const char *, int);
+int options_get_key(struct options *, const char *);
+void options_set_colours(struct options *, const char *, u_char);
+u_char options_get_colours(struct options *, const char *);
/* tty.c */
void tty_init(struct tty *, char *, char *);
@@ -842,6 +850,7 @@ extern const struct cmd_entry cmd_send_keys_entry;
extern const struct cmd_entry cmd_send_prefix_entry;
extern const struct cmd_entry cmd_set_option_entry;
extern const struct cmd_entry cmd_set_window_option_entry;
+extern const struct cmd_entry cmd_show_options_entry;
extern const struct cmd_entry cmd_start_server_entry;
extern const struct cmd_entry cmd_swap_window_entry;
extern const struct cmd_entry cmd_switch_client_entry;