Introduction
Introduction Statistics Contact Development Disclaimer Help
ui_ti: add application key support - sacc - sacc - sacc(omys), simple console g…
git clone git://git.codemadness.org/sacc
Log
Files
Refs
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;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.