Define 'TERMKEY_FORMAT_VIM' as a shortcut to make it format keys like Vim does
This commit is contained in:
parent
e0671d1a01
commit
ae8aafdee0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue