aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-06-06 19:00:13 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-06-06 19:00:13 +0000
commitdcc100f165d2d710174db61e54d97610843578fb (patch)
treed28e5cfb78ea328a928062a9ab7292c56672bb0c /tmux.h
parent4e3bed20351e0b2293d1445d829795578321e069 (diff)
downloadrtmux-dcc100f165d2d710174db61e54d97610843578fb.tar.gz
rtmux-dcc100f165d2d710174db61e54d97610843578fb.tar.bz2
rtmux-dcc100f165d2d710174db61e54d97610843578fb.zip
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.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 4 insertions, 0 deletions
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. */