From 227e458ebbd69d1e8d22f9013de111f734608ba7 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Sat, 5 Jun 2010 20:29:11 +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. --- tmux.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tmux.h') 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 @@ -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. */ -- cgit