aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorMicah Cowan <micah@micah.cowan.name>2010-06-05 20:29:11 +0000
committerMicah Cowan <micah@micah.cowan.name>2010-06-05 20:29:11 +0000
commit227e458ebbd69d1e8d22f9013de111f734608ba7 (patch)
tree8394378e8217309998e3b03e2eddf5270033d89b /tmux.h
parent89eb95265a8acf42f17f7f93b1b5206a20f842a9 (diff)
downloadrtmux-227e458ebbd69d1e8d22f9013de111f734608ba7.tar.gz
rtmux-227e458ebbd69d1e8d22f9013de111f734608ba7.tar.bz2
rtmux-227e458ebbd69d1e8d22f9013de111f734608ba7.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.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index bf9c294c..effb690a 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.558 2010-05-22 21:56:04 micahcowan Exp $ */
+/* $Id: tmux.h,v 1.559 2010-06-05 20:29:11 micahcowan Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -110,6 +110,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. */