aboutsummaryrefslogtreecommitdiff
path: root/networking/telnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/telnet.c')
-rw-r--r--networking/telnet.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/networking/telnet.c b/networking/telnet.c
index fa1628723..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)
@@ -248,7 +260,7 @@ static void handle_net_input(int len)
248{ 260{
249 byte c; 261 byte c;
250 int i; 262 int i;
251 int cstart = cstart; /* for compiler */ 263 int cstart = 0;
252 264
253 i = 0; 265 i = 0;
254 //bb_error_msg("[%u,'%.*s']", G.telstate, len, G.buf); 266 //bb_error_msg("[%u,'%.*s']", G.telstate, len, G.buf);