aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-07-25 08:52:04 +0000
committerTiago Cunha <tcunha@gmx.com>2009-07-25 08:52:04 +0000
commit28cf7dc39ed54a49567204c951ada1681af44734 (patch)
tree2c259016303d7dd0b82089ed64de7f89cd78f8f2 /tmux.h
parent744ccb7cc933c6e433a3b4a4c889364540689829 (diff)
downloadrtmux-28cf7dc39ed54a49567204c951ada1681af44734.tar.gz
rtmux-28cf7dc39ed54a49567204c951ada1681af44734.tar.bz2
rtmux-28cf7dc39ed54a49567204c951ada1681af44734.zip
Sync OpenBSD patchset 175:
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.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/tmux.h b/tmux.h
index b334b19e..f42428f1 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.388 2009-07-23 23:42:59 tcunha Exp $ */
+/* $Id: tmux.h,v 1.389 2009-07-25 08:52:04 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -101,10 +101,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. */
@@ -855,8 +857,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.
@@ -868,6 +868,8 @@ struct cmd_ctx {
* configuration file.
*/
struct client *curclient;
+ struct client *cmdclient;
+
struct session *cursession;
struct msg_command_data *msgdata;