about summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-12 22:55:02 -0400
committerJune McEnroe <june@causal.agency>2018-09-12 22:55:02 -0400
commitb36a1347022965fdbe1b61298dc6a05be2d2a34d (patch)
treeb758829545252a09cac25ac7e89774faa36ae186 /chat.h
parentFactor out IRC formatting parsing (diff)
downloadcatgirl-b36a1347022965fdbe1b61298dc6a05be2d2a34d.tar.gz
catgirl-b36a1347022965fdbe1b61298dc6a05be2d2a34d.zip
Use formatParse split to position input cursor
Diffstat (limited to '')
-rw-r--r--chat.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/chat.h b/chat.h
index 50f5c87..6295ce6 100644
--- a/chat.h
+++ b/chat.h
@@ -86,15 +86,12 @@ enum {
 struct Format {
 	const wchar_t *str;
 	size_t len;
-	bool bold;
-	bool italic;
-	bool underline;
-	bool reverse;
-	int fg;
-	int bg;
+	bool split;
+	bool bold, italic, underline, reverse;
+	int fg, bg;
 };
 void formatReset(struct Format *format);
-bool formatParse(struct Format *format, const wchar_t *stop);
+bool formatParse(struct Format *format, const wchar_t *split);
 
 void handle(char *line);
 void input(struct Tag tag, char *line);