Recently Written · git

sacc

Mirror of git://bitreich.org/sacc, the sacc gopher client from bitreich.org.

git clone https://github.com/equwal/sacc

Log | Files | Refs


commit 100d8ae55fc598a2c898bd6b5d33e15f131cee0c
Hiltjo Posthuma <hiltjo@codemadness.org>
2022-03-27 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.

 ui_ti.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ui_ti.c b/ui_ti.c
index 4bfd6f5..7f2ac21 100644
--- 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;