make special keys also work with TERM=xterm-256color

This commit is contained in:
Michael Klein 2017-05-11 16:55:24 +02:00
parent b1028e03c5
commit 45f3769887
1 changed files with 1 additions and 1 deletions

2
CRT.c
View File

@ -575,7 +575,7 @@ void CRT_init(int delay, int colorScheme) {
CRT_scrollHAmount = 20; CRT_scrollHAmount = 20;
else else
CRT_scrollHAmount = 5; 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[H", KEY_HOME);
define_key("\033[F", KEY_END); define_key("\033[F", KEY_END);
define_key("\033[7~", KEY_HOME); define_key("\033[7~", KEY_HOME);