ui_ti: add application key support - sacc - sacc(omys), simple console gopher c… | |
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit 100d8ae55fc598a2c898bd6b5d33e15f131cee0c | |
parent b15d084107da05069a3cf70cd81475f26d8e563e | |
Author: Hiltjo Posthuma <[email protected]> | |
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(-) | |
--- | |
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; |