From dcc100f165d2d710174db61e54d97610843578fb Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 6 Jun 2010 19:00:13 +0000 Subject: Use a macro-based mask for obtaining a key or modifier-set from the combination. Display C-@, etc, as C-Space, in list-keys. By Micah Cowan. --- tmux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index a9e41351..c090aedd 100644 --- a/tmux.h +++ b/tmux.h @@ -111,6 +111,10 @@ extern char **environ; #define KEYC_SHIFT 0x8000 #define KEYC_PREFIX 0x10000 +/* Mask to obtain key w/o modifiers */ +#define KEYC_MASK_MOD (KEYC_ESCAPE|KEYC_CTRL|KEYC_SHIFT|KEYC_PREFIX) +#define KEYC_MASK_KEY (~KEYC_MASK_MOD) + /* Other key codes. */ enum key_code { /* Mouse key. */ -- cgit