From 45f37698874d89ffb56b4cc8f0f329c702f8a68f Mon Sep 17 00:00:00 2001 From: Michael Klein Date: Thu, 11 May 2017 16:55:24 +0200 Subject: make special keys also work with TERM=xterm-256color --- CRT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRT.c b/CRT.c index 0d516989..1c6ba8ab 100644 --- a/CRT.c +++ b/CRT.c @@ -575,7 +575,7 @@ void CRT_init(int delay, int colorScheme) { CRT_scrollHAmount = 20; else CRT_scrollHAmount = 5; - if (String_eq(CRT_termType, "xterm") || String_eq(CRT_termType, "xterm-color") || String_eq(CRT_termType, "vt220")) { + if (String_startsWith(CRT_termType, "xterm") || String_eq(CRT_termType, "vt220")) { define_key("\033[H", KEY_HOME); define_key("\033[F", KEY_END); define_key("\033[7~", KEY_HOME); -- cgit v1.2.3