nano

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

commit 3c5e5d4b6f7fd388578622e3ed9c78aad88055c1
parent 09ab2e3d0eeb33bc4d0702623404ba01b1f8fa9a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 12 Sep 2018 15:00:06 +0200

input: recognize the sequences for Ctrl+Shift+Delete on xterm and urxvt

This fixes https://savannah.gnu.org/bugs/?54648.

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

diff --git a/src/winio.c b/src/winio.c @@ -1101,12 +1101,18 @@ int convert_sequence(const int *seq, size_t length, int *consumed) if (seq[3] == '5') /* Esc [ 3 ; 5 ~ == Ctrl-Delete on xterm. */ return CONTROL_DELETE; + if (seq[3] == '6') + /* Esc [ 3 ; 6 ~ == Ctrl-Shift-Delete on xterm. */ + return controlshiftdelete; } if (length > 2 && seq[2] == '^') { /* Esc [ 3 ^ == Ctrl-Delete on urxvt. */ *consumed = 3; return CONTROL_DELETE; } + if (length > 2 && seq[2] == '@') + /* Esc [ 3 @ == Ctrl-Shift-Delete on urxvt. */ + return controlshiftdelete; break; case '4': /* Esc [ 4 ~ == End on VT220/VT320/ * Linux console/xterm. */