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.
This commit is contained in:
Benno Schulenberg 2024-05-11 16:50:37 +02:00
parent 363a4378b7
commit c446904c19
1 changed files with 4 additions and 0 deletions

View File

@ -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':