diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-10-06 22:39:35 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-10-06 22:39:35 +0100 |
commit | ae8aafdee024f5c75b2ef07a962c7833ae3d30f6 (patch) | |
tree | 5af1470fea501eada0c056e69bcba2a3fcf1fc35 /termkey.h | |
parent | e0671d1a01dcac4d69087127122daa89188fab5e (diff) | |
download | termo-ae8aafdee024f5c75b2ef07a962c7833ae3d30f6.tar.gz termo-ae8aafdee024f5c75b2ef07a962c7833ae3d30f6.tar.xz termo-ae8aafdee024f5c75b2ef07a962c7833ae3d30f6.zip |
Define 'TERMKEY_FORMAT_VIM' as a shortcut to make it format keys like Vim does
Diffstat (limited to 'termkey.h')
-rw-r--r-- | termkey.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -139,6 +139,10 @@ typedef enum { TERMKEY_FORMAT_WRAPBRACKET = 8, } termkey_format; +// Some useful combinations + +#define TERMKEY_FORMAT_VIM (TERMKEY_FORMAT_ALTISMETA|TERMKEY_FORMAT_WRAPBRACKET) + size_t termkey_snprint_key(termkey_t *tk, char *buffer, size_t len, termkey_key *key, termkey_format format); #endif |