nano

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

commit fa7e9b11df96a38bce2526ffc0db24b099b1e61c
parent 838b175d4fbb0433763665fcd2497033ba4f696a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 23 Jan 2018 12:12:41 +0100

input: recognize more escape sequences for <Shift+Home> and <Shift+End>

This fixes the second part of https://savannah.gnu.org/bugs/?52960.

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

diff --git a/src/winio.c b/src/winio.c @@ -978,6 +978,12 @@ int convert_sequence(const int *seq, size_t length, int *consumed) case 'D': /* Esc [ 1 ; 2 D == Shift-Left on xterm. */ shift_held = TRUE; return arrow_from_abcd(seq[4]); +#ifndef NANO_TINY + case 'F': /* Esc [ 1 ; 2 F == Shift-End on xterm. */ + return SHIFT_END; + case 'H': /* Esc [ 1 ; 2 H == Shift-Home on xterm. */ + return SHIFT_HOME; +#endif } break; #ifndef NANO_TINY