Set title to tag name

master
Curtis McEnroe 2018-08-13 23:09:53 -04:00
parent 11d445b672
commit ed9961410e
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 3 additions and 0 deletions

3
ui.c
View File

@ -169,6 +169,7 @@ void uiInit(void) {
noecho(); noecho();
colorInit(); colorInit();
termInit();
ui.input = newpad(2, INPUT_COLS); ui.input = newpad(2, INPUT_COLS);
mvwhline(ui.input, 0, 0, ACS_HLINE, INPUT_COLS); mvwhline(ui.input, 0, 0, ACS_HLINE, INPUT_COLS);
@ -177,6 +178,7 @@ void uiInit(void) {
nodelay(ui.input, true); nodelay(ui.input, true);
ui.view = viewTag(TAG_STATUS); ui.view = viewTag(TAG_STATUS);
termTitle(TAG_STATUS.name);
uiShow(); uiShow();
} }
@ -228,6 +230,7 @@ static void uiRedraw(void) {
} }
static void uiView(struct View *view) { static void uiView(struct View *view) {
termTitle(view->tag.name);
if (view->topic) touchwin(view->topic); if (view->topic) touchwin(view->topic);
touchwin(view->log); touchwin(view->log);
ui.view->mark = true; ui.view->mark = true;