input: recognize the raw escape sequences for F13 to F16 on xterm too

For symmetry with Gnome Terminal, Konsole, and the Linux console.

This fixes https://savannah.gnu.org/bugs/?57482.
This commit is contained in:
Benno Schulenberg 2019-12-26 17:07:51 +01:00
parent 56d842258c
commit 38c286c019
1 changed files with 5 additions and 0 deletions

View File

@ -990,6 +990,11 @@ int convert_sequence(const int *seq, size_t length, int *consumed)
return SHIFT_END;
case 'H': /* Esc [ 1 ; 2 H == Shift-Home on xterm. */
return SHIFT_HOME;
case 'P': /* Esc [ 1 ; 2 P == F13 on xterm. */
case 'Q': /* Esc [ 1 ; 2 Q == F14 on xterm. */
case 'R': /* Esc [ 1 ; 2 R == F15 on xterm. */
case 'S': /* Esc [ 1 ; 2 S == F16 on xterm. */
return KEY_F(13 + seq[4] - 'P');
#endif
}
break;