ref: b01a1225245a7b2e1aac0571c1bbde773f62e836
parent: 076096db29da41161b44e3b7419ef3afb9a7b416
author: cancel <cancel@cancel.fm>
date: Fri Dec 14 03:45:58 EST 2018
Clean up qbox title drawing
--- a/term_util.c
+++ b/term_util.c
@@ -95,12 +95,14 @@
}
void qblock_print_title(Qblock* qb, char const* title, int attr) {
- wmove(qb->outer_window, 0, 2);
+ wmove(qb->outer_window, 0, 1);
attr_t attrs = A_NORMAL;
short pair = 0;
wattr_get(qb->outer_window, &attrs, &pair, NULL);
wattrset(qb->outer_window, attr);
+ waddch(qb->outer_window, ' ');
wprintw(qb->outer_window, title);
+ waddch(qb->outer_window, ' ');
wattr_set(qb->outer_window, attrs, pair, NULL);
}