diff options
| -rw-r--r-- | networking/telnet.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/networking/telnet.c b/networking/telnet.c index 5c8805265..9fc85050b 100644 --- a/networking/telnet.c +++ b/networking/telnet.c | |||
| @@ -238,6 +238,18 @@ static void handle_net_output(int len) | |||
| 238 | *dst = '\r'; /* Enter -> CR LF */ | 238 | *dst = '\r'; /* Enter -> CR LF */ |
| 239 | *++dst = '\n'; | 239 | *++dst = '\n'; |
| 240 | } | 240 | } |
| 241 | #if 0 | ||
| 242 | /* putty's "special commands" mode does this: */ | ||
| 243 | /* Korenix 3005 switch needs at least the backspace tweak */ | ||
| 244 | if (c == 0x08 || c == 0x7f) { /* ctrl+h || backspace */ | ||
| 245 | *dst = IAC; | ||
| 246 | *++dst = EC; | ||
| 247 | } | ||
| 248 | if (c == 0x03) { /* ctrl+c */ | ||
| 249 | *dst = IAC; | ||
| 250 | *++dst = IP; | ||
| 251 | } | ||
| 252 | #endif | ||
| 241 | dst++; | 253 | dst++; |
| 242 | } | 254 | } |
| 243 | if (dst - outbuf != 0) | 255 | if (dst - outbuf != 0) |
