diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-24 14:52:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-24 14:52:47 +0000 |
commit | 5a1a1066371328f9d53a9bc5e5c4c53acb26c2b2 (patch) | |
tree | b9b54a76352420ff03b31146ad0846e438332949 /tmux.h | |
parent | ce4eb6559e1aabb67e08a367a7c5e049e800c7ed (diff) | |
download | rtmux-5a1a1066371328f9d53a9bc5e5c4c53acb26c2b2.tar.gz rtmux-5a1a1066371328f9d53a9bc5e5c4c53acb26c2b2.tar.bz2 rtmux-5a1a1066371328f9d53a9bc5e5c4c53acb26c2b2.zip |
Permit commands to be bound to key presses without the prefix key first. The
new -n flag to bind-key and unbind-key sets or removes these bindings, and
list-key shows them in []s.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -102,10 +102,12 @@ struct buffer { #define BELL_CURRENT 2 /* Key codes. ncurses defines KEY_*. Grrr. */ -#define KEYC_NONE 0x0fff -#define KEYC_ESCAPE 0x2000 -#define KEYC_CTRL 0x4000 -#define KEYC_SHIFT 0x8000 +#define KEYC_NONE 0xfff +/* 0x1000 is base for special keys */ +#define KEYC_ESCAPE 0x2000 +#define KEYC_CTRL 0x4000 +#define KEYC_SHIFT 0x8000 +#define KEYC_PREFIX 0x10000 enum key_code { /* Mouse key. */ @@ -856,8 +858,6 @@ struct client_ctx { /* Key/command line command. */ struct cmd_ctx { - struct client *cmdclient; - /* * curclient is the client where this command was executed if inside * tmux. This is NULL if the command came from the command-line. @@ -869,6 +869,8 @@ struct cmd_ctx { * configuration file. */ struct client *curclient; + struct client *cmdclient; + struct session *cursession; struct msg_command_data *msgdata; |