nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit c8a2f36e8789fed27956b6cbef08d254da9ac06f
parent f2f7498f12954342a7b0bb8ad16a6e7590bc6997
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 26 Sep 2017 21:34:12 +0200

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.

Diffstat:
Msrc/winio.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -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. */