1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Merge branch 'statusbar' into winbuffers

This commit is contained in:
James Booth 2014-07-18 23:19:25 +01:00
commit 78b0388b6c
2 changed files with 4 additions and 3 deletions

View File

@ -191,8 +191,8 @@ _ui_resize(const int ch, const char * const input, const int size)
{ {
log_info("Resizing UI"); log_info("Resizing UI");
title_bar_resize(); title_bar_resize();
status_bar_resize();
wins_resize_all(); wins_resize_all();
status_bar_resize();
inp_win_resize(input, size); inp_win_resize(input, size);
ProfWin *window = wins_get_current(); ProfWin *window = wins_get_current();
win_update_virtual(window); win_update_virtual(window);

View File

@ -107,10 +107,11 @@ status_bar_resize(void)
int rows, cols; int rows, cols;
getmaxyx(stdscr, rows, cols); getmaxyx(stdscr, rows, cols);
werase(status_bar);
mvwin(status_bar, rows-2, 0); mvwin(status_bar, rows-2, 0);
wresize(status_bar, 1, cols); wresize(status_bar, 1, cols);
wbkgd(status_bar, COLOUR_STATUS_TEXT); wbkgd(status_bar, COLOUR_STATUS_TEXT);
werase(status_bar);
wattron(status_bar, COLOUR_STATUS_BRACKET); wattron(status_bar, COLOUR_STATUS_BRACKET);
mvwprintw(status_bar, 0, cols - 34, _active); mvwprintw(status_bar, 0, cols - 34, _active);
mvwprintw(status_bar, 0, cols - 34 + ((current - 1) * 3), bracket); mvwprintw(status_bar, 0, cols - 34 + ((current - 1) * 3), bracket);
@ -415,4 +416,4 @@ _status_bar_draw(void)
_update_win_statuses(); _update_win_statuses();
wnoutrefresh(status_bar); wnoutrefresh(status_bar);
inp_put_back(); inp_put_back();
} }