From 8bed1fdbf03cc72689f57cd637465a3ca2b4c8e2 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Mon, 26 Aug 2013 18:51:29 +0100 Subject: Add TERMKEY_FORMAT_URWID shortcut [thanks Romain Chossart] --- termkey.h.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'termkey.h.in') 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); -- cgit v1.2.3