summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index 2445eb1..2d5e454 100644
--- a/ui.c
+++ b/ui.c
@@ -296,6 +296,16 @@ static void statusUpdate(void) {
 		styleAdd(status, buf, true);
 	}
 	wclrtoeol(status);
+
+	int unread;
+	char buf[256];
+	snprintf(
+		buf, sizeof(buf), "%s %s%n (%d)",
+		self.network, idNames[windows.active->id],
+		&unread, windows.active->unread
+	);
+	if (!windows.active->unread) buf[unread] = '\0';
+	termTitle(buf);
 }
 
 void uiShowID(size_t id) {
s='logmsg'> Turns out I did eventually fix this, because I may want to implement "passive clients" for logging or notification stuff, which wouldn't affect AWAY status either. 2019-11-07Just write the example normallyJune McEnroe 2019-11-07Include path in readlinkat errorJune McEnroe 2019-11-07Call clientConsume before clientRecvJune McEnroe This might reduce the frequency of a client getting its own message back because it was behind in the ring when it sent it. 2019-11-06Use -l:filename in Linux.mkJune McEnroe 2019-11-06Fix compat.h for #defined strlcpyJune McEnroe 2019-11-06Allow unsetting LIBRESSL_PREFIXJune McEnroe 2019-11-06Document calico service configurationJune McEnroe 2019-11-06Document SASL EXTERNAL configuration in more detailJune McEnroe 2019-11-06Document pounce service configurationJune McEnroe 2019-11-06Mention Darwin and GNU/Linux in READMEJune McEnroe 2019-11-06Assume LibreSSL from brew on DarwinJune McEnroe 2019-11-06Remove -DNO_EXPLICIT_BZERO from Darwin.mkJune McEnroe 2019-11-06Don't install rc scripts or dirs on LinuxJune McEnroe