From ae8aafdee024f5c75b2ef07a962c7833ae3d30f6 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Mon, 6 Oct 2008 22:39:35 +0100 Subject: Define 'TERMKEY_FORMAT_VIM' as a shortcut to make it format keys like Vim does --- termkey.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3-70-g09d2