diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-10 17:41:36 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-10 17:41:36 +0000 |
commit | 9d73edd6b11cbdf080e6c10bda0e45f49e98a57a (patch) | |
tree | b470c5635127ef30b8185422444dbb7077f132d8 /usr.bin/tmux/tmux.h | |
parent | b9414f0dd9cf01f060faab923b6afa065d5b64ff (diff) |
Whoops, this is needed for last commit as well.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 0c6ebe9ca46..74398e8fbb3 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.173 2009/11/05 19:29:41 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.174 2009/11/10 17:41:35 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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, |