ui_ti: add support for more DEC function keys - sacc - sacc(omys), simple conso… | |
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit cb05caeda420012e03188d8f2cde8b80a166aeb1 | |
parent b4f6ed2bf2344c5717523313bc666eb297a6fe36 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 27 Mar 2022 13:30:25 +0200 | |
ui_ti: add support for more DEC function keys | |
This makes these keys work on a default configured urxvt and putty. | |
Diffstat: | |
M ui_ti.c | 9 +++++++++ | |
1 file changed, 9 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/ui_ti.c b/ui_ti.c | |
@@ -443,18 +443,27 @@ uiselectitem(Item *entry) | |
} | |
c = getchar(); | |
switch (c) { | |
+ case '1': | |
case '4': | |
case '5': | |
case '6': | |
+ case '7': /* urxvt */ | |
+ case '8': /* urxvt */ | |
if (getchar() != '~') | |
continue; | |
switch (c) { | |
+ case '1': | |
+ goto home; | |
case '4': | |
goto end; | |
case '5': | |
goto pgup; | |
case '6': | |
goto pgdown; | |
+ case '7': | |
+ goto home; | |
+ case '8': | |
+ goto end; | |
} | |
case 'A': | |
goto lnup; |