Add a home and end as modified by xterm in keypad mode, from Chris Johnsen.

This commit is contained in:
Nicholas Marriott 2013-03-11 09:37:52 +00:00
parent 49ed75d883
commit 97620bb5be

View File

@ -82,6 +82,13 @@ const struct tty_default_key_raw tty_default_raw_keys[] = {
{ "\033[C", KEYC_RIGHT }, { "\033[C", KEYC_RIGHT },
{ "\033[D", KEYC_LEFT }, { "\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. */ /* rxvt-style arrow + modifier keys. */
{ "\033Oa", KEYC_UP|KEYC_CTRL }, { "\033Oa", KEYC_UP|KEYC_CTRL },
{ "\033Ob", KEYC_DOWN|KEYC_CTRL }, { "\033Ob", KEYC_DOWN|KEYC_CTRL },