1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

New function-key mode similar to modern xterm.

This is the same as the previous FUNKY_XTERM mode if you don't press
any modifier keys, but now Shift or Ctrl or Alt with function keys
adds an extra bitmap parameter. The bitmaps are the same as the ones
used by the new SHARROW_BITMAP arrow key mode.
This commit is contained in:
Simon Tatham
2021-10-23 11:04:53 +01:00
parent a40b581fc1
commit b13f3d079b
6 changed files with 60 additions and 13 deletions

View File

@ -530,7 +530,8 @@ enum {
FUNKY_XTERM,
FUNKY_VT400,
FUNKY_VT100P,
FUNKY_SCO
FUNKY_SCO,
FUNKY_XTERM_216
};
enum {
@ -1947,7 +1948,7 @@ typedef enum SmallKeypadKey {
int format_arrow_key(char *buf, Terminal *term, int xkey,
bool shift, bool ctrl, bool alt, bool *consumed_alt);
int format_function_key(char *buf, Terminal *term, int key_number,
bool shift, bool ctrl);
bool shift, bool ctrl, bool alt, bool *consumed_alt);
int format_small_keypad_key(char *buf, Terminal *term, SmallKeypadKey key);
int format_numeric_keypad_key(char *buf, Terminal *term, char key,
bool shift, bool ctrl);