From 6b97c597569eb960e3696e7667e553d05238f3e9 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 25 Feb 2019 16:02:41 -0500 Subject: Add color to tags --- chat.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'chat.h') diff --git a/chat.h b/chat.h index 452470d..f3a102c 100644 --- a/chat.h +++ b/chat.h @@ -52,18 +52,6 @@ void eventWait(const char *argv[static 2]); void eventPipe(const char *argv[static 2]); noreturn void eventLoop(void); -struct Tag { - size_t id; - const char *name; -}; - -enum { TagsLen = 256 }; -const struct Tag TagNone; -const struct Tag TagStatus; -const struct Tag TagRaw; -struct Tag tagFind(const char *name); -struct Tag tagFor(const char *name); - enum IRCColor { IRCWhite, IRCBlack, @@ -92,6 +80,19 @@ enum { IRCUnderline = 037, }; +struct Tag { + size_t id; + const char *name; + enum IRCColor color; +}; + +enum { TagsLen = 256 }; +const struct Tag TagNone; +const struct Tag TagStatus; +const struct Tag TagRaw; +struct Tag tagFind(const char *name); +struct Tag tagFor(const char *name, enum IRCColor color); + struct Format { const wchar_t *str; size_t len; -- cgit 1.4.1-2-gfad0