ui_ti: add application key support - sacc - sacc(omys), simple console gopher client
(HTM) git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) LICENSE
---
(DIR) commit 100d8ae55fc598a2c898bd6b5d33e15f131cee0c
(DIR) parent b15d084107da05069a3cf70cd81475f26d8e563e
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 27 Mar 2022 13:22:50 +0200
ui_ti: add application key support
This is a sequence like ESC O A (arrow key in application key mode).
This is a default mode in some terminals, like the terminal in HaikuOS.
It makes the arrow keys work nicely.
Diffstat:
M ui_ti.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/ui_ti.c b/ui_ti.c
@@ -435,7 +435,8 @@ uiselectitem(Item *entry)
switch (getchar()) {
case 0x1b:
goto quit;
- case '[':
+ case 'O': /* application key */
+ case '[': /* DEC */
break;
default:
continue;