aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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