diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-11-10 23:31:21 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-11-10 23:31:21 +0000 |
commit | 74e742113d6a4276b683820fa346a7bc1a381f15 (patch) | |
tree | eac4807d22a36a86f95b5a75caa4ae4d0db595ff | |
parent | e9b357550f96100d9eba0c9141ad058c51b9f3e9 (diff) | |
download | rtmux-74e742113d6a4276b683820fa346a7bc1a381f15.tar.gz rtmux-74e742113d6a4276b683820fa346a7bc1a381f15.tar.bz2 rtmux-74e742113d6a4276b683820fa346a7bc1a381f15.zip |
Sync OpenBSD patchset 523:
Whoops, this is needed for last commit as well.
-rw-r--r-- | tmux.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.511 2009-11-08 23:32:39 tcunha Exp $ */ +/* $Id: tmux.h,v 1.512 2009-11-10 23:31:21 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -97,17 +97,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, |