summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-25 16:02:41 -0500
committerJune McEnroe <june@causal.agency>2019-02-25 16:02:41 -0500
commit6b97c597569eb960e3696e7667e553d05238f3e9 (patch)
tree17bd5cf51cc0f580b9406e90ce5bdc1e4daadfd4 /chat.h
parentRemove tag X macros again (diff)
downloadcatgirl-6b97c597569eb960e3696e7667e553d05238f3e9.tar.gz
catgirl-6b97c597569eb960e3696e7667e553d05238f3e9.zip
Add color to tags
Diffstat (limited to 'chat.h')
-rw-r--r--chat.h25
1 files changed, 13 insertions, 12 deletions
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;
mmit/ui.c?h=2.1&id=d71d0409951203d333a354c991073d18f98b8fd1&follow=1'>Rewrite line editing again, add formattingJune McEnroe 2018-08-06Fix allocation size in vaswprintfJune McEnroe 2018-08-06Implement word wrappingJune McEnroe 2018-08-06Use wchar_t strings for all of UIJune McEnroe 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe 2018-08-04Handle /topicJune McEnroe