aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-10-06 22:39:35 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-10-06 22:39:35 +0100
commitae8aafdee024f5c75b2ef07a962c7833ae3d30f6 (patch)
tree5af1470fea501eada0c056e69bcba2a3fcf1fc35
parente0671d1a01dcac4d69087127122daa89188fab5e (diff)
downloadtermo-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
-rw-r--r--termkey.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/termkey.h b/termkey.h
index d2cfd12..b3e48a3 100644
--- a/termkey.h
+++ b/termkey.h
@@ -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