1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Always show windows in status bar

This commit is contained in:
James Booth 2012-02-17 02:18:47 +00:00
parent 672906dd1d
commit 3be7dc9c6f
2 changed files with 8 additions and 3 deletions

View File

@ -14,6 +14,7 @@ void create_status_bar(void)
status_bar = newwin(1, cols, rows-2, 0);
wbkgd(status_bar, COLOR_PAIR(3));
mvwprintw(status_bar, 0, cols - 29, _active);
wrefresh(status_bar);
}
@ -63,6 +64,10 @@ void status_bar_print_message(const char *msg)
void status_bar_clear(void)
{
wclear(status_bar);
int rows, cols;
getmaxyx(stdscr, rows, cols);
mvwprintw(status_bar, 0, cols - 29, _active);
}
static void _status_bar_update_time(void)

View File

@ -132,13 +132,13 @@ void cons_help(void)
wprintw(_wins[0].win,
" [%s] /close : Close a chat window.\n", tstmp);
wprintw(_wins[0].win,
" [%s] /msg user@host : Send a message to user.\n", tstmp);
" [%s] /msg user@host mesg : Send mesg to user.\n", tstmp);
wprintw(_wins[0].win,
" [%s] /quit : Quit Profanity.\n", tstmp);
wprintw(_wins[0].win,
" [%s] Shortcuts:\n", tstmp);
wprintw(_wins[0].win,
" [%s] F1 : Console window.\n", tstmp);
" [%s] F1 : This console window.\n", tstmp);
wprintw(_wins[0].win,
" [%s] F2-10 : Chat windows.\n", tstmp);
}