From a61b916c18f6997a76186609e0697bd893865412 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Wed, 8 Oct 2008 02:06:00 +0100 Subject: Adjustment to demo.c; just print the vim style format --- demo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/demo.c b/demo.c index 6e55931..6e635ca 100644 --- a/demo.c +++ b/demo.c @@ -10,9 +10,7 @@ int main(int argc, char *argv[]) { termkey_key key; while((ret = termkey_waitkey(tk, &key)) != TERMKEY_RES_EOF) { - termkey_snprint_key(tk, buffer, sizeof buffer, &key, 0); - printf("%s or ", buffer); - termkey_snprint_key(tk, buffer, sizeof buffer, &key, ~0); + termkey_snprint_key(tk, buffer, sizeof buffer, &key, TERMKEY_FORMAT_VIM); printf("%s\n", buffer); if(key.type == TERMKEY_TYPE_UNICODE && -- cgit v1.2.3-70-g09d2