diff options
author | June McEnroe <june@causal.agency> | 2018-09-12 22:55:02 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-09-12 22:55:02 -0400 |
commit | b36a1347022965fdbe1b61298dc6a05be2d2a34d (patch) | |
tree | b758829545252a09cac25ac7e89774faa36ae186 /chat.h | |
parent | Factor out IRC formatting parsing (diff) | |
download | catgirl-b36a1347022965fdbe1b61298dc6a05be2d2a34d.tar.gz catgirl-b36a1347022965fdbe1b61298dc6a05be2d2a34d.zip |
Use formatParse split to position input cursor
Diffstat (limited to '')
-rw-r--r-- | chat.h | 11 |
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); |