aboutsummaryrefslogtreecommitdiff
path: root/demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'demo.c')
-rw-r--r--demo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demo.c b/demo.c
index 540861d..c1c820c 100644
--- a/demo.c
+++ b/demo.c
@@ -18,7 +18,7 @@ int main(int argc, char *argv[]) {
tcsetattr(0, TCSANOW, &termios);
- termkey_t *tk = termkey_new(0, TERMKEY_FLAG_CONVERTKP);
+ termkey_t *tk = termkey_new(0, 0);
termkey_result ret;
termkey_key key;
@@ -29,7 +29,7 @@ int main(int argc, char *argv[]) {
key.modifiers & TERMKEY_KEYMOD_SHIFT ? "S-" : "",
key.modifiers & TERMKEY_KEYMOD_ALT ? "A-" : "",
key.modifiers & TERMKEY_KEYMOD_CTRL ? "C-" : "",
- termkey_describe_sym(key.code),
+ termkey_describe_sym(tk, key.code),
key.code);
else
printf("Key %s%s%s%s (U+%04X)\n",