From 803a16cbcd2d1a770dc5d8f5aa7051f5dcf2b398 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 14 May 2024 16:32:25 +0200 Subject: [PATCH] input: drop recognition of the urxvt escape sequences for M-Home/M-End Nano does not recognize the urxvt escape sequences for other combinations either. And with the previous two commits, the urxvt user can now "help themselves". This reverts commit 363a4378 from three days ago. --- src/winio.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/winio.c b/src/winio.c index 9a9d282a..54cffd9a 100644 --- 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)