diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-07 02:21:14 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-07 02:21:14 +0000 |
commit | 63ed80a8974aea9dc0398f15926bc348f5b0901e (patch) | |
tree | 087ee40bc389f75ad929ee57565daf6a96eb3cb5 /demo.c | |
parent | 6294cca6f9bc910b224393e38e3c09eeb821fcb7 (diff) | |
download | termo-63ed80a8974aea9dc0398f15926bc348f5b0901e.tar.gz termo-63ed80a8974aea9dc0398f15926bc348f5b0901e.tar.xz termo-63ed80a8974aea9dc0398f15926bc348f5b0901e.zip |
Reworking of CSI/SS3/CSIfunc recognition; use registered numbers + names for keys, rather than hardcoded
Diffstat (limited to 'demo.c')
-rw-r--r-- | demo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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", |