sacc

sacc (saccomys): simple gopher client.
Log | Files | Refs | LICENSE

commit 100d8ae55fc598a2c898bd6b5d33e15f131cee0c
parent b15d084107da05069a3cf70cd81475f26d8e563e
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:
Mui_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;