From ed9961410e3f9e4a23244446a4d2cfd2f1a79584 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 13 Aug 2018 23:09:53 -0400 Subject: [PATCH] Set title to tag name --- ui.c | 3 +++ 1 file changed, 3 insertions(+) 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;