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

 ui_ti.c | 9 +++++++++
 1 file changed, 9 insertions(+)
diff --git a/ui_ti.c b/ui_ti.c
index b4072f7..e256611 100644
--- 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;