Define 'TERMKEY_FORMAT_VIM' as a shortcut to make it format keys like Vim does

This commit is contained in:
Paul LeoNerd Evans 2008-10-06 22:39:35 +01:00
parent e0671d1a01
commit ae8aafdee0
1 changed files with 4 additions and 0 deletions

View File

@ -139,6 +139,10 @@ typedef enum {
TERMKEY_FORMAT_WRAPBRACKET = 8, TERMKEY_FORMAT_WRAPBRACKET = 8,
} termkey_format; } 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); size_t termkey_snprint_key(termkey_t *tk, char *buffer, size_t len, termkey_key *key, termkey_format format);
#endif #endif