From 4991b3bb1a60b164e839bd733cae4cc8acadbbd7 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 24 Dec 2019 19:37:22 +0100 Subject: [PATCH] input: Ctrl+arrow is "Esc O x" on Eterm, as on rxvt -- not "Esc o x" (Checked on Eterm-0.9.6 running on Xubuntu 18.04.) --- src/winio.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/winio.c b/src/winio.c index 7ef47451..136f5108 100644 --- a/src/winio.c +++ b/src/winio.c @@ -904,13 +904,13 @@ int convert_sequence(const int *seq, size_t length, int *consumed) return KEY_F(9); case 'Y': /* Esc O Y == F10 on Mach console. */ return KEY_F(10); - case 'a': /* Esc O a == Ctrl-Up on rxvt. */ + case 'a': /* Esc O a == Ctrl-Up on rxvt/Eterm. */ return CONTROL_UP; - case 'b': /* Esc O b == Ctrl-Down on rxvt. */ + case 'b': /* Esc O b == Ctrl-Down on rxvt/Eterm. */ return CONTROL_DOWN; - case 'c': /* Esc O c == Ctrl-Right on rxvt. */ + case 'c': /* Esc O c == Ctrl-Right on rxvt/Eterm. */ return CONTROL_RIGHT; - case 'd': /* Esc O d == Ctrl-Left on rxvt. */ + case 'd': /* Esc O d == Ctrl-Left on rxvt/Eterm. */ return CONTROL_LEFT; case 'j': /* Esc O j == '*' on numeric keypad with * NumLock off on VT100/VT220/VT320/xterm/ @@ -954,18 +954,6 @@ int convert_sequence(const int *seq, size_t length, int *consumed) return KEY_PPAGE; } break; - case 'o': - switch (seq[1]) { - case 'a': /* Esc o a == Ctrl-Up on Eterm. */ - return CONTROL_UP; - case 'b': /* Esc o b == Ctrl-Down on Eterm. */ - return CONTROL_DOWN; - case 'c': /* Esc o c == Ctrl-Right on Eterm. */ - return CONTROL_RIGHT; - case 'd': /* Esc o d == Ctrl-Left on Eterm. */ - return CONTROL_LEFT; - } - break; case '[': if (seq[1] < '9') *consumed = 3;