aboutsummaryrefslogtreecommitdiff
path: root/src/telnet.h
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2016-01-18 11:36:44 -0500
committerFranklin Wei <git@fwei.tk>2016-01-18 11:36:44 -0500
commita8cdc61833ab16dcb0d0d8364710d55759cc0293 (patch)
tree0fc29d8bd03f5bd9cc6ad61e4b887f5fb939c413 /src/telnet.h
parent17ca1e8e354572f68f0e369431fcfcf3249b93ae (diff)
downloadnetcosm-a8cdc61833ab16dcb0d0d8364710d55759cc0293.zip
netcosm-a8cdc61833ab16dcb0d0d8364710d55759cc0293.tar.gz
netcosm-a8cdc61833ab16dcb0d0d8364710d55759cc0293.tar.bz2
netcosm-a8cdc61833ab16dcb0d0d8364710d55759cc0293.tar.xz
support telnet NAWS (RFC 1073)
Diffstat (limited to 'src/telnet.h')
-rw-r--r--src/telnet.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/telnet.h b/src/telnet.h
index f54643f..854828e 100644
--- a/src/telnet.h
+++ b/src/telnet.h
@@ -46,7 +46,10 @@ void telnet_init(void);
#define TELNET_EXIT 1
/* returns either TELNET_OK or TELNET_EXIT */
-int telnet_handle_command(const unsigned char*);
+int telnet_handle_command(const unsigned char*, size_t);
+
+uint16_t telnet_get_width(void);
+uint16_t telnet_get_height(void);
void telnet_echo_on(void);
void telnet_echo_off(void);