From fa7e9b11df96a38bce2526ffc0db24b099b1e61c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 23 Jan 2018 12:12:41 +0100 Subject: [PATCH] input: recognize more escape sequences for and This fixes the second part of https://savannah.gnu.org/bugs/?52960. --- src/winio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/winio.c b/src/winio.c index 3f15a4a8..7499f8c0 100644 --- 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