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

From RDB: a patch to allow special keys (^C, ^Z, Delete, Return) to

send Telnet special sequences (Interrupt Process, Suspend, Erase
Char, End Of Line) instead of their ASCII equivalents. In particular
Return -> Telnet End Of Line is _always_ enabled irrespective of the
configuration, while the others are optional. Also in this patch, an
entertainingly ghastly use of `switch' to allow literal ^M^J to do
the same thing as magic-^M (the Return key) when in Raw protocol.

[originally from svn r1109]
This commit is contained in:
Simon Tatham
2001-05-09 15:12:26 +00:00
parent c2eb57a034
commit e001f1533e
6 changed files with 120 additions and 23 deletions

View File

@ -107,7 +107,8 @@ GLOBAL HWND logbox;
typedef enum {
TS_AYT, TS_BRK, TS_SYNCH, TS_EC, TS_EL, TS_GA, TS_NOP, TS_ABORT,
TS_AO, TS_IP, TS_SUSP, TS_EOR, TS_EOF, TS_LECHO, TS_RECHO, TS_PING
TS_AO, TS_IP, TS_SUSP, TS_EOR, TS_EOF, TS_LECHO, TS_RECHO, TS_PING,
TS_EOL
} Telnet_Special;
typedef enum {
@ -206,6 +207,7 @@ typedef struct {
int app_cursor;
int app_keypad;
int nethack_keypad;
int telnet_keyboard;
int alt_f4; /* is it special? */
int alt_space; /* is it special? */
int alt_only; /* is it special? */