From 636634f244bbe04c703b5019f26578ac5441fefd Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 23 Jan 2016 15:25:34 -0500 Subject: stuff --- src/telnet.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/telnet.c') diff --git a/src/telnet.c b/src/telnet.c index a4efac4..a28752a 100644 --- a/src/telnet.c +++ b/src/telnet.c @@ -16,11 +16,11 @@ * along with this program. If not, see . */ +#define TELCMDS +#define TELOPTS #include "globals.h" #include "client.h" - -#define TELCMDS #include "telnet.h" static uint16_t term_width, term_height; @@ -109,6 +109,7 @@ void telnet_echo_off(void) { const unsigned char seq[] = { IAC, WILL, TELOPT_ECHO, + IAC, DONT, TELOPT_ECHO, }; out_raw(seq, ARRAYLEN(seq)); } @@ -117,6 +118,7 @@ void telnet_echo_on(void) { const unsigned char seq[] = { IAC, WONT, TELOPT_ECHO, + IAC, DO, TELOPT_ECHO, }; out_raw(seq, ARRAYLEN(seq)); } -- cgit v1.1