input: recognize Option+Arrow keys on iTerm2 in "xterm mode"

Inspired-by: Mike Frysinger <vapier@gentoo.org>

This kind of addresses https://savannah.gnu.org/bugs/?51685.
master
Benno Schulenberg 2017-09-26 21:34:12 +02:00
parent f2f7498f12
commit c8a2f36e87
1 changed files with 1 additions and 0 deletions

View File

@ -971,6 +971,7 @@ int convert_sequence(const int *seq, size_t seq_len)
}
break;
#ifndef NANO_TINY
case '9': /* To accomodate iTerm2 in "xterm mode". */
case '3':
switch (seq[4]) {
case 'A': /* Esc [ 1 ; 3 A == Alt-Up on xterm. */