about summary refs log tree commit diff
path: root/ui.c
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 /ui.c
parentRemove tag X macros again (diff)
downloadcatgirl-6b97c597569eb960e3696e7667e553d05238f3e9.tar.gz
catgirl-6b97c597569eb960e3696e7667e553d05238f3e9.zip
Add color to tags
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui.c b/ui.c
index ab519b6..ffb2916 100644
--- a/ui.c
+++ b/ui.c
@@ -335,10 +335,11 @@ static void uiStatus(void) {
 		int unread;
 		wchar_t *str;
 		int len = aswprintf(
-			&str, L"%c %d %s %n(\3%02d%u\3) ",
-			(windows.active == win ? IRCReverse : IRCReset),
+			&str, L"%c\3%d %d %s %n(\3%02d%u\3%d) ",
+			(windows.active == win ? IRCReverse : IRCReset), win->tag.color,
 			num, win->tag.name,
-			&unread, (win->hot ? IRCYellow : IRCDefault), win->unread
+			&unread, (win->hot ? IRCWhite : win->tag.color), win->unread,
+			win->tag.color
 		);
 		if (len < 0) err(EX_OSERR, "aswprintf");
 		if (!win->unread) str[unread] = L'\0';
/> 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe Absolutely indiscriminately. 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine. 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe