From af4c412ebf4ba96973fb6ea3e9ee8f59fe751769 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 9 Apr 2014 17:47:22 -0300 Subject: [PATCH] Better support for Home and End keys --- CRT.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRT.c b/CRT.c index 60eeea11..5b308e56 100644 --- a/CRT.c +++ b/CRT.c @@ -182,6 +182,8 @@ void CRT_init(int delay, int colorScheme) { if (String_eq(CRT_termType, "xterm") || String_eq(CRT_termType, "xterm-color") || String_eq(CRT_termType, "vt220")) { define_key("\033[H", KEY_HOME); define_key("\033[F", KEY_END); + define_key("\033[7~", KEY_HOME); + define_key("\033[8~", KEY_END); define_key("\033OP", KEY_F(1)); define_key("\033OQ", KEY_F(2)); define_key("\033OR", KEY_F(3));