mirror of git://git.sv.gnu.org/nano.git
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.)
This commit is contained in:
parent
075b7e75bc
commit
4991b3bb1a
20
src/winio.c
20
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;
|
||||
|
|
Loading…
Reference in New Issue