aboutsummaryrefslogtreecommitdiff
path: root/termkey.h.in
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2013-08-26 18:51:29 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2013-08-26 18:51:29 +0100
commit8bed1fdbf03cc72689f57cd637465a3ca2b4c8e2 (patch)
tree48341cc7b3ceddd89661202e8d8c7a5e724df2f5 /termkey.h.in
parente3d0baa84699dc0fe589fc36e53d09132a0b5925 (diff)
downloadtermo-8bed1fdbf03cc72689f57cd637465a3ca2b4c8e2.tar.gz
termo-8bed1fdbf03cc72689f57cd637465a3ca2b4c8e2.tar.xz
termo-8bed1fdbf03cc72689f57cd637465a3ca2b4c8e2.zip
Add TERMKEY_FORMAT_URWID shortcut [thanks Romain Chossart]
Diffstat (limited to 'termkey.h.in')
-rw-r--r--termkey.h.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/termkey.h.in b/termkey.h.in
index 5afe118..f884e55 100644
--- a/termkey.h.in
+++ b/termkey.h.in
@@ -225,6 +225,8 @@ typedef enum {
/* Some useful combinations */
#define TERMKEY_FORMAT_VIM (TERMKEY_FORMAT_ALTISMETA|TERMKEY_FORMAT_WRAPBRACKET)
+#define TERMKEY_FORMAT_URWID (TERMKEY_FORMAT_LONGMOD|TERMKEY_FORMAT_ALTISMETA| \
+ TERMKEY_FORMAT_LOWERMOD|TERMKEY_FORMAT_SPACEMOD|TERMKEY_FORMAT_LOWERSPACE)
size_t termkey_strfkey(TermKey *tk, char *buffer, size_t len, TermKeyKey *key, TermKeyFormat format);
const char *termkey_strpkey(TermKey *tk, const char *str, TermKeyKey *key, TermKeyFormat format);