aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/telnet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/telnet.c b/networking/telnet.c
index 7081a6a41..b700fbed9 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -386,20 +386,20 @@ static void put_iac_naws(byte c, int x, int y)
386} 386}
387#endif 387#endif
388 388
389static char const escapecharis[] ALIGN1 = "\r\nEscape character is ";
390
391static void setConMode(void) 389static void setConMode(void)
392{ 390{
393 if (G.telflags & UF_ECHO) { 391 if (G.telflags & UF_ECHO) {
394 if (G.charmode == CHM_TRY) { 392 if (G.charmode == CHM_TRY) {
395 G.charmode = CHM_ON; 393 G.charmode = CHM_ON;
396 printf("\r\nEntering character mode%s'^]'.\r\n", escapecharis); 394 printf("\r\nEntering %s mode"
395 "\r\nEscape character is '^%c'.\r\n", "character", ']');
397 rawmode(); 396 rawmode();
398 } 397 }
399 } else { 398 } else {
400 if (G.charmode != CHM_OFF) { 399 if (G.charmode != CHM_OFF) {
401 G.charmode = CHM_OFF; 400 G.charmode = CHM_OFF;
402 printf("\r\nEntering line mode%s'^C'.\r\n", escapecharis); 401 printf("\r\nEntering %s mode"
402 "\r\nEscape character is '^%c'.\r\n", "line", 'C');
403 cookmode(); 403 cookmode();
404 } 404 }
405 } 405 }