aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-10 17:41:35 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-10 17:41:35 +0000
commitb92fcf23fdaea625d31d5902f4fbb50b776d424b (patch)
treeeb2bd404756457a08a80a4b3d79df13621d14254
parent38f64b3da3ab824f24685078789e2f16873a5d8b (diff)
downloadrtmux-b92fcf23fdaea625d31d5902f4fbb50b776d424b.tar.gz
rtmux-b92fcf23fdaea625d31d5902f4fbb50b776d424b.tar.bz2
rtmux-b92fcf23fdaea625d31d5902f4fbb50b776d424b.zip
Whoops, this is needed for last commit as well.
-rw-r--r--tmux.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index 14890440..d82363d0 100644
--- a/tmux.h
+++ b/tmux.h
@@ -98,17 +98,20 @@ extern char **environ;
#define BELL_ANY 1
#define BELL_CURRENT 2
-/* Key codes. ncurses defines KEY_*. Grrr. */
+/* Special key codes. */
#define KEYC_NONE 0xfff
-/* 0x1000 is base for special keys */
+#define KEYC_BASE 0x1000
+
+/* Key modifier bits. */
#define KEYC_ESCAPE 0x2000
#define KEYC_CTRL 0x4000
#define KEYC_SHIFT 0x8000
#define KEYC_PREFIX 0x10000
+/* Other key codes. */
enum key_code {
/* Mouse key. */
- KEYC_MOUSE = 0x1000,
+ KEYC_MOUSE = KEYC_BASE,
/* Backspace key. */
KEYC_BSPACE,