From 97620bb5becf29571a8f5bd1ee89e0b12908f799 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 11 Mar 2013 09:37:52 +0000 Subject: [PATCH] Add a home and end as modified by xterm in keypad mode, from Chris Johnsen. --- tty-keys.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tty-keys.c b/tty-keys.c index 575920e6..fab8c3fb 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -82,6 +82,13 @@ const struct tty_default_key_raw tty_default_raw_keys[] = { { "\033[C", KEYC_RIGHT }, { "\033[D", KEYC_LEFT }, + /* Other (xterm) "cursor" keys. */ + { "\033OH", KEYC_HOME }, + { "\033OF", KEYC_END }, + + { "\033[H", KEYC_HOME }, + { "\033[F", KEYC_END }, + /* rxvt-style arrow + modifier keys. */ { "\033Oa", KEYC_UP|KEYC_CTRL }, { "\033Ob", KEYC_DOWN|KEYC_CTRL },