nano

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

commit 803a16cbcd2d1a770dc5d8f5aa7051f5dcf2b398
parent 0b43c8da111ffb046f7413a227762d8aace40456
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 14 May 2024 16:32:25 +0200

input: drop recognition of the urxvt escape sequences for M-Home/M-End

Nano does not recognize the urxvt escape sequences for other
<Alt+cursorkey> combinations either.  And with the previous
two commits, the urxvt user can now "help themselves".

This reverts commit 363a4378 from three days ago.

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

diff --git a/src/winio.c b/src/winio.c @@ -829,8 +829,6 @@ int convert_CSI_sequence(const int *seq, size_t length, int *consumed) #ifndef NANO_TINY else if (length > 1 && seq[1] == '@') return shiftcontrolhome; - else if (length > 1 && seq[1] == 0xFE) - return ALT_HOME; #endif break; case '8': /* Esc [ 8 ~ == End on Eterm/rxvt; @@ -846,8 +844,6 @@ int convert_CSI_sequence(const int *seq, size_t length, int *consumed) #ifndef NANO_TINY else if (length > 1 && seq[1] == '@') return shiftcontrolend; - else if (length > 1 && seq[1] == 0xFE) - return ALT_END; #endif break; case '9': /* Esc [ 9 == Delete on Mach console. */ @@ -1060,12 +1056,6 @@ int parse_kbinput(WINDOW *frame) #endif else if (keycode < 0x20 && !last_escape_was_alone) meta_key = TRUE; -#ifndef NANO_TINY - else if (keycode == KEY_HOME) - return ALT_HOME; - else if (keycode == KEY_END) - return ALT_END; -#endif } else if (waiting_codes == 0 || nextcodes[0] == ESC_CODE || (keycode != 'O' && keycode != '[')) { if (!shifted_metas)