Set title to tag name
parent
11d445b672
commit
ed9961410e
3
ui.c
3
ui.c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue