diff --git a/CHANGES b/CHANGES index 6a10495d..fabcca77 100644 --- a/CHANGES +++ b/CHANGES @@ -3,8 +3,6 @@ * Support the numeric keypad. This is really confusing: parts of it have termcap entries and parts do not. I'm not sure I've got it right but this seems to work. -* Change arrow keys from \033OA to \033[A to match screen's behaviour rather - than its termcap. 19 July 2008 @@ -622,4 +620,4 @@ (including mutt, emacs). No status bar yet and no key remapping or other customisation. -$Id: CHANGES,v 1.151 2008-07-23 23:44:50 nicm Exp $ +$Id: CHANGES,v 1.152 2008-07-23 23:46:51 nicm Exp $ diff --git a/input-keys.c b/input-keys.c index 8e54064a..24ed8e7b 100644 --- a/input-keys.c +++ b/input-keys.c @@ -1,4 +1,4 @@ -/* $Id: input-keys.c,v 1.11 2008-07-23 23:44:50 nicm Exp $ */ +/* $Id: input-keys.c,v 1.12 2008-07-23 23:46:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -47,10 +47,10 @@ struct { { KEYC_PPAGE, "\033[5~" }, { KEYC_SELECT, "\033[4~" }, - { KEYC_UP, "\033[A" }, - { KEYC_DOWN, "\033[B" }, - { KEYC_LEFT, "\033[D" }, - { KEYC_RIGHT, "\033[C" }, + { KEYC_UP, "\033OA" }, + { KEYC_DOWN, "\033OB" }, + { KEYC_LEFT, "\033OD" }, + { KEYC_RIGHT, "\033OC" }, { KEYC_KP0_1, "\033Oo" }, { KEYC_KP0_2, "\033Oj" },