1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32: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

@ -596,6 +596,15 @@ through to \c{ESC [j}. With control they generate \c{ESC [k} through
to \c{ESC [v}, and with shift and control together they generate
\c{ESC [w} through to \c{ESC [\{}.
\b In \I{xterm}Xterm 216 mode, the unshifted function keys behave the
same as Xterm R6 mode. But pressing a function key together with Shift
or Alt or Ctrl generates a different sequence containing an extra
numeric parameter of the form (1 for Shift) + (2 for Alt) + (4 for
Ctrl) + 1. For F1-F4, the basic sequences like \c{ESC OP} become
\cw{ESC [1;}\e{bitmap}\cw{P} and similar; for F5 and above,
\cw{ESC[}\e{index}\cw{~} becomes
\cw{ESC[}\e{index}\cw{;}\e{bitmap}\cw{~}.
If you don't know what any of this means, you probably don't need to
fiddle with it.