summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-13 23:09:53 -0400
committerJune McEnroe <june@causal.agency>2018-08-13 23:09:53 -0400
commited9961410e3f9e4a23244446a4d2cfd2f1a79584 (patch)
tree403d7a03e040d9a51c927f7b77d7e436a7e72dcf
parentAdd termTitle (diff)
downloadcatgirl-ed9961410e3f9e4a23244446a4d2cfd2f1a79584.tar.gz
catgirl-ed9961410e3f9e4a23244446a4d2cfd2f1a79584.zip
Set title to tag name
-rw-r--r--ui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index 6fcb75e..29b7b08 100644
--- a/ui.c
+++ b/ui.c
@@ -169,6 +169,7 @@ void uiInit(void) {
 	noecho();
 
 	colorInit();
+	termInit();
 
 	ui.input = newpad(2, INPUT_COLS);
 	mvwhline(ui.input, 0, 0, ACS_HLINE, INPUT_COLS);
@@ -177,6 +178,7 @@ void uiInit(void) {
 	nodelay(ui.input, true);
 
 	ui.view = viewTag(TAG_STATUS);
+	termTitle(TAG_STATUS.name);
 
 	uiShow();
 }
@@ -228,6 +230,7 @@ static void uiRedraw(void) {
 }
 
 static void uiView(struct View *view) {
+	termTitle(view->tag.name);
 	if (view->topic) touchwin(view->topic);
 	touchwin(view->log);
 	ui.view->mark = true;