commit c446904c195c476ad8c4c88b89abda63206ad9bc
parent 363a4378b752020ff91f2a1db5d8a58c45274c32
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 11 May 2024 16:50:37 +0200
input: recognize the raw Xterm escape sequences for Alt+Home and Alt+End
This makes those keystrokes work too when --raw is used.
But more importantly: these raw sequences can be used in an
~/.Xresources file to override the odd behavior of urxvt for
those keystrokes, making the previous commit redundant.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -630,6 +630,10 @@ int convert_CSI_sequence(const int *seq, size_t length, int *consumed)
return ALT_RIGHT;
case 'D': /* Esc [ 1 ; 3 D == Alt-Left on xterm. */
return ALT_LEFT;
+ case 'F': /* Esc [ 1 ; 3 F == Alt-End on xterm. */
+ return ALT_END;
+ case 'H': /* Esc [ 1 ; 3 H == Alt-Home on xterm. */
+ return ALT_HOME;
}
break;
case '4':