Moved windows on resize

This commit is contained in:
James Booth
2012-04-22 20:59:36 +01:00
parent e5d4e09f6a
commit 6f69ce267b
6 changed files with 24 additions and 18 deletions

View File

@@ -80,8 +80,10 @@ void status_bar_resize(void)
int rows, cols, i;
getmaxyx(stdscr, rows, cols);
status_bar = newwin(1, cols, rows-2, 0);
mvwin(status_bar, rows-2, 0);
wresize(status_bar, 1, cols);
wbkgd(status_bar, COLOR_PAIR(3));
wclear(status_bar);
wattron(status_bar, COLOR_PAIR(4));
mvwprintw(status_bar, 0, cols - 29, _active);
wattroff(status_bar, COLOR_PAIR(4));