From 344a56010938c28225c3d145d5191c8fb8234288 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 18 Jan 2016 14:59:35 -0500 Subject: fix a synchronization bug, better word wrapping, and pretty telnet --- src/telnet.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/telnet.h') diff --git a/src/telnet.h b/src/telnet.h index 854828e..2289e84 100644 --- a/src/telnet.h +++ b/src/telnet.h @@ -42,11 +42,11 @@ void telnet_init(void); -#define TELNET_OK 0 -#define TELNET_EXIT 1 +enum telnet_status { TELNET_DATA = 0, + TELNET_FOUNDCMD, + TELNET_EXIT }; -/* returns either TELNET_OK or TELNET_EXIT */ -int telnet_handle_command(const unsigned char*, size_t); +enum telnet_status telnet_parse_data(const unsigned char*, size_t); uint16_t telnet_get_width(void); uint16_t telnet_get_height(void); -- cgit v1.1