diff options
| author | Franklin Wei <git@fwei.tk> | 2016-01-23 15:25:34 -0500 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2016-01-23 15:25:34 -0500 |
| commit | 636634f244bbe04c703b5019f26578ac5441fefd (patch) | |
| tree | 488a725b47f8bcc925f78b59665231742cf80a41 /src/telnet.c | |
| parent | bb90172cbaa3a38f58293982a38f6854d9afe1f9 (diff) | |
| download | netcosm-636634f244bbe04c703b5019f26578ac5441fefd.zip netcosm-636634f244bbe04c703b5019f26578ac5441fefd.tar.gz netcosm-636634f244bbe04c703b5019f26578ac5441fefd.tar.bz2 netcosm-636634f244bbe04c703b5019f26578ac5441fefd.tar.xz | |
stuff
Diffstat (limited to 'src/telnet.c')
| -rw-r--r-- | src/telnet.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>. */ +#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)); } |