aboutsummaryrefslogtreecommitdiffstats
path: root/interactive-test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-08 21:26:00 +0200
committerMattias Andrée <maandree@kth.se>2021-04-08 21:38:20 +0200
commit70f3882661d770d0e6acbc3cc5d29124400f4241 (patch)
tree34ae5d1474180bd2c8fcad5575b417ec15101066 /interactive-test.c
parentAdd support for near full keyboard support (diff)
downloadlibterminput-70f3882661d770d0e6acbc3cc5d29124400f4241.tar.gz
libterminput-70f3882661d770d0e6acbc3cc5d29124400f4241.tar.bz2
libterminput-70f3882661d770d0e6acbc3cc5d29124400f4241.tar.xz
Add more sequences and remove pause key as it conflicts with F1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'interactive-test.c')
-rw-r--r--interactive-test.c86
1 files changed, 45 insertions, 41 deletions
diff --git a/interactive-test.c b/interactive-test.c
index d393a96..a1101e4 100644
--- a/interactive-test.c
+++ b/interactive-test.c
@@ -37,47 +37,51 @@ main(void)
case LIBTERMINPUT_SYMBOL:
printf("\t%s: %s\n", "key: symbol", input.keypress.symbol);
break;
- case LIBTERMINPUT_UP: printf("\t%s: %s\n", "key", "up"); break;
- case LIBTERMINPUT_DOWN: printf("\t%s: %s\n", "key", "down"); break;
- case LIBTERMINPUT_RIGHT: printf("\t%s: %s\n", "key", "right"); break;
- case LIBTERMINPUT_BEGIN: printf("\t%s: %s\n", "key", "begin"); break;
- case LIBTERMINPUT_PAUSE: printf("\t%s: %s\n", "key", "pause"); break;
- case LIBTERMINPUT_TAB: printf("\t%s: %s\n", "key", "tab"); break;
- case LIBTERMINPUT_F1: printf("\t%s: %s\n", "key", "f1"); break;
- case LIBTERMINPUT_F2: printf("\t%s: %s\n", "key", "f2"); break;
- case LIBTERMINPUT_F3: printf("\t%s: %s\n", "key", "f3"); break;
- case LIBTERMINPUT_F4: printf("\t%s: %s\n", "key", "f4"); break;
- case LIBTERMINPUT_F5: printf("\t%s: %s\n", "key", "f5"); break;
- case LIBTERMINPUT_F6: printf("\t%s: %s\n", "key", "f6"); break;
- case LIBTERMINPUT_F7: printf("\t%s: %s\n", "key", "f7"); break;
- case LIBTERMINPUT_F8: printf("\t%s: %s\n", "key", "f8"); break;
- case LIBTERMINPUT_F9: printf("\t%s: %s\n", "key", "f9"); break;
- case LIBTERMINPUT_F10: printf("\t%s: %s\n", "key", "f10"); break;
- case LIBTERMINPUT_F11: printf("\t%s: %s\n", "key", "f11"); break;
- case LIBTERMINPUT_F12: printf("\t%s: %s\n", "key", "f12"); break;
- case LIBTERMINPUT_HOME: printf("\t%s: %s\n", "key", "home"); break;
- case LIBTERMINPUT_INS: printf("\t%s: %s\n", "key", "ins"); break;
- case LIBTERMINPUT_DEL: printf("\t%s: %s\n", "key", "del"); break;
- case LIBTERMINPUT_END: printf("\t%s: %s\n", "key", "end"); break;
- case LIBTERMINPUT_PRIOR: printf("\t%s: %s\n", "key", "prior"); break;
- case LIBTERMINPUT_NEXT: printf("\t%s: %s\n", "key", "next"); break;
- case LIBTERMINPUT_ERASE: printf("\t%s: %s\n", "key", "erase"); break;
- case LIBTERMINPUT_ENTER: printf("\t%s: %s\n", "key", "enter"); break;
- case LIBTERMINPUT_ESC: printf("\t%s: %s\n", "key", "esc"); break;
- case LIBTERMINPUT_KEYPAD_0: printf("\t%s: %s\n", "key", "keypad 0"); break;
- case LIBTERMINPUT_KEYPAD_1: printf("\t%s: %s\n", "key", "keypad 1"); break;
- case LIBTERMINPUT_KEYPAD_2: printf("\t%s: %s\n", "key", "keypad 2"); break;
- case LIBTERMINPUT_KEYPAD_3: printf("\t%s: %s\n", "key", "keypad 3"); break;
- case LIBTERMINPUT_KEYPAD_4: printf("\t%s: %s\n", "key", "keypad 4"); break;
- case LIBTERMINPUT_KEYPAD_5: printf("\t%s: %s\n", "key", "keypad 5"); break;
- case LIBTERMINPUT_KEYPAD_6: printf("\t%s: %s\n", "key", "keypad 6"); break;
- case LIBTERMINPUT_KEYPAD_7: printf("\t%s: %s\n", "key", "keypad 7"); break;
- case LIBTERMINPUT_KEYPAD_8: printf("\t%s: %s\n", "key", "keypad 8"); break;
- case LIBTERMINPUT_KEYPAD_9: printf("\t%s: %s\n", "key", "keypad 9"); break;
- case LIBTERMINPUT_KEYPAD_MINUS: printf("\t%s: %s\n", "key", "keypad minus"); break;
- case LIBTERMINPUT_KEYPAD_COMMA: printf("\t%s: %s\n", "key", "keypad comma"); break;
- case LIBTERMINPUT_KEYPAD_POINT: printf("\t%s: %s\n", "key", "keypad point"); break;
- case LIBTERMINPUT_KEYPAD_ENTER: printf("\t%s: %s\n", "key", "keypad enter"); break;
+ case LIBTERMINPUT_UP: printf("\t%s: %s\n", "key", "up"); break;
+ case LIBTERMINPUT_DOWN: printf("\t%s: %s\n", "key", "down"); break;
+ case LIBTERMINPUT_RIGHT: printf("\t%s: %s\n", "key", "right"); break;
+ case LIBTERMINPUT_BEGIN: printf("\t%s: %s\n", "key", "begin"); break;
+ case LIBTERMINPUT_MACRO: printf("\t%s: %s\n", "key", "macro"); break;
+ case LIBTERMINPUT_TAB: printf("\t%s: %s\n", "key", "tab"); break;
+ case LIBTERMINPUT_F1: printf("\t%s: %s\n", "key", "f1"); break;
+ case LIBTERMINPUT_F2: printf("\t%s: %s\n", "key", "f2"); break;
+ case LIBTERMINPUT_F3: printf("\t%s: %s\n", "key", "f3"); break;
+ case LIBTERMINPUT_F4: printf("\t%s: %s\n", "key", "f4"); break;
+ case LIBTERMINPUT_F5: printf("\t%s: %s\n", "key", "f5"); break;
+ case LIBTERMINPUT_F6: printf("\t%s: %s\n", "key", "f6"); break;
+ case LIBTERMINPUT_F7: printf("\t%s: %s\n", "key", "f7"); break;
+ case LIBTERMINPUT_F8: printf("\t%s: %s\n", "key", "f8"); break;
+ case LIBTERMINPUT_F9: printf("\t%s: %s\n", "key", "f9"); break;
+ case LIBTERMINPUT_F10: printf("\t%s: %s\n", "key", "f10"); break;
+ case LIBTERMINPUT_F11: printf("\t%s: %s\n", "key", "f11"); break;
+ case LIBTERMINPUT_F12: printf("\t%s: %s\n", "key", "f12"); break;
+ case LIBTERMINPUT_HOME: printf("\t%s: %s\n", "key", "home"); break;
+ case LIBTERMINPUT_INS: printf("\t%s: %s\n", "key", "ins"); break;
+ case LIBTERMINPUT_DEL: printf("\t%s: %s\n", "key", "del"); break;
+ case LIBTERMINPUT_END: printf("\t%s: %s\n", "key", "end"); break;
+ case LIBTERMINPUT_PRIOR: printf("\t%s: %s\n", "key", "prior"); break;
+ case LIBTERMINPUT_NEXT: printf("\t%s: %s\n", "key", "next"); break;
+ case LIBTERMINPUT_ERASE: printf("\t%s: %s\n", "key", "erase"); break;
+ case LIBTERMINPUT_ENTER: printf("\t%s: %s\n", "key", "enter"); break;
+ case LIBTERMINPUT_ESC: printf("\t%s: %s\n", "key", "esc"); break;
+ case LIBTERMINPUT_KEYPAD_0: printf("\t%s: %s\n", "key", "keypad 0"); break;
+ case LIBTERMINPUT_KEYPAD_1: printf("\t%s: %s\n", "key", "keypad 1"); break;
+ case LIBTERMINPUT_KEYPAD_2: printf("\t%s: %s\n", "key", "keypad 2"); break;
+ case LIBTERMINPUT_KEYPAD_3: printf("\t%s: %s\n", "key", "keypad 3"); break;
+ case LIBTERMINPUT_KEYPAD_4: printf("\t%s: %s\n", "key", "keypad 4"); break;
+ case LIBTERMINPUT_KEYPAD_5: printf("\t%s: %s\n", "key", "keypad 5"); break;
+ case LIBTERMINPUT_KEYPAD_6: printf("\t%s: %s\n", "key", "keypad 6"); break;
+ case LIBTERMINPUT_KEYPAD_7: printf("\t%s: %s\n", "key", "keypad 7"); break;
+ case LIBTERMINPUT_KEYPAD_8: printf("\t%s: %s\n", "key", "keypad 8"); break;
+ case LIBTERMINPUT_KEYPAD_9: printf("\t%s: %s\n", "key", "keypad 9"); break;
+ case LIBTERMINPUT_KEYPAD_PLUS: printf("\t%s: %s\n", "key", "keypad plus"); break;
+ case LIBTERMINPUT_KEYPAD_MINUS: printf("\t%s: %s\n", "key", "keypad minus"); break;
+ case LIBTERMINPUT_KEYPAD_TIMES: printf("\t%s: %s\n", "key", "keypad times"); break;
+ case LIBTERMINPUT_KEYPAD_DIVISION: printf("\t%s: %s\n", "key", "keypad division"); break;
+ case LIBTERMINPUT_KEYPAD_DECIMAL: printf("\t%s: %s\n", "key", "keypad decimal"); break;
+ case LIBTERMINPUT_KEYPAD_COMMA: printf("\t%s: %s\n", "key", "keypad comma"); break;
+ case LIBTERMINPUT_KEYPAD_POINT: printf("\t%s: %s\n", "key", "keypad point"); break;
+ case LIBTERMINPUT_KEYPAD_ENTER: printf("\t%s: %s\n", "key", "keypad enter"); break;
default:
printf("\t%s: %s\n", "key", "other");
break;