aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demo.c4
1 files changed, 1 insertions, 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 &&