diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-09-22 14:22:21 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-09-22 14:22:21 +0000 |
commit | df7b68480cf37f4039a5fd1809fd7c8dbf127277 (patch) | |
tree | 4e764c63c18a86cd683cabe5bdf1817d970dfb03 /tmux.h | |
parent | 31ccf2f8134538bd3f4b2bad0d092536b3adb519 (diff) | |
download | rtmux-df7b68480cf37f4039a5fd1809fd7c8dbf127277.tar.gz rtmux-df7b68480cf37f4039a5fd1809fd7c8dbf127277.tar.bz2 rtmux-df7b68480cf37f4039a5fd1809fd7c8dbf127277.zip |
Sync OpenBSD patchset 343:
Permit multiple prefix keys to be defined, separated by commas, for example:
set -g prefix ^a,^b
Any key in the list acts as the prefix. The send-prefix command always sends
the first key in the list.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.449 2009-09-22 13:59:46 tcunha Exp $ */ +/* $Id: tmux.h,v 1.450 2009-09-22 14:22:21 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -542,10 +542,14 @@ struct options_entry { enum { OPTIONS_STRING, OPTIONS_NUMBER, + OPTIONS_DATA, } type; char *str; long long num; + void *data; + + void (*freefn)(void *); SPLAY_ENTRY(options_entry) entry; }; @@ -555,6 +559,9 @@ struct options { struct options *parent; }; +/* Key list for prefix option. */ +ARRAY_DECL(keylist, int); + /* Screen selection. */ struct screen_sel { int flag; @@ -1083,7 +1090,7 @@ struct set_option_entry { enum { SET_OPTION_STRING, SET_OPTION_NUMBER, - SET_OPTION_KEY, + SET_OPTION_KEYS, SET_OPTION_COLOUR, SET_OPTION_ATTRIBUTES, SET_OPTION_FLAG, @@ -1163,6 +1170,9 @@ char *options_get_string(struct options *, const char *); struct options_entry *options_set_number( struct options *, const char *, long long); long long options_get_number(struct options *, const char *); +struct options_entry *options_set_data( + struct options *, const char *, void *, void (*)(void *)); +void *options_get_data(struct options *, const char *); /* environ.c */ int environ_cmp(struct environ_entry *, struct environ_entry *); @@ -1243,7 +1253,7 @@ void set_option_string(struct cmd_ctx *, struct options *, const struct set_option_entry *, char *, int); void set_option_number(struct cmd_ctx *, struct options *, const struct set_option_entry *, char *); -void set_option_key(struct cmd_ctx *, +void set_option_keys(struct cmd_ctx *, struct options *, const struct set_option_entry *, char *); void set_option_colour(struct cmd_ctx *, struct options *, const struct set_option_entry *, char *); |