From eac0f83efa3d6b1db2715c21d60b170a546ebc0a Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 8 Aug 2018 16:59:26 -0400 Subject: Factor out line editing to edit.c --- chat.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'chat.h') diff --git a/chat.h b/chat.h index 09f0d2c..9507f12 100644 --- a/chat.h +++ b/chat.h @@ -18,6 +18,7 @@ #include #include +#include #include #include @@ -31,6 +32,15 @@ struct { char *chan; } chat; +enum { + IRC_BOLD = 002, + IRC_COLOR = 003, + IRC_REVERSE = 026, + IRC_RESET = 017, + IRC_ITALIC = 035, + IRC_UNDERLINE = 037, +}; + int ircConnect(const char *host, const char *port, const char *webPass); void ircRead(void); void ircWrite(const char *ptr, size_t len); @@ -58,6 +68,10 @@ void uiFmt(const wchar_t *format, ...); } while(0) #endif +const wchar_t *editHead(void); +const wchar_t *editTail(void); +bool edit(bool meta, bool ctrl, wchar_t ch); + void handle(char *line); void input(char *line); -- cgit 1.4.1