mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-27 01:16:21 +00:00
Always show windows in status bar
This commit is contained in:
@@ -14,6 +14,7 @@ void create_status_bar(void)
|
|||||||
|
|
||||||
status_bar = newwin(1, cols, rows-2, 0);
|
status_bar = newwin(1, cols, rows-2, 0);
|
||||||
wbkgd(status_bar, COLOR_PAIR(3));
|
wbkgd(status_bar, COLOR_PAIR(3));
|
||||||
|
mvwprintw(status_bar, 0, cols - 29, _active);
|
||||||
wrefresh(status_bar);
|
wrefresh(status_bar);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,6 +64,10 @@ void status_bar_print_message(const char *msg)
|
|||||||
void status_bar_clear(void)
|
void status_bar_clear(void)
|
||||||
{
|
{
|
||||||
wclear(status_bar);
|
wclear(status_bar);
|
||||||
|
|
||||||
|
int rows, cols;
|
||||||
|
getmaxyx(stdscr, rows, cols);
|
||||||
|
mvwprintw(status_bar, 0, cols - 29, _active);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _status_bar_update_time(void)
|
static void _status_bar_update_time(void)
|
||||||
|
|||||||
@@ -132,15 +132,15 @@ void cons_help(void)
|
|||||||
wprintw(_wins[0].win,
|
wprintw(_wins[0].win,
|
||||||
" [%s] /close : Close a chat window.\n", tstmp);
|
" [%s] /close : Close a chat window.\n", tstmp);
|
||||||
wprintw(_wins[0].win,
|
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,
|
wprintw(_wins[0].win,
|
||||||
" [%s] /quit : Quit Profanity.\n", tstmp);
|
" [%s] /quit : Quit Profanity.\n", tstmp);
|
||||||
wprintw(_wins[0].win,
|
wprintw(_wins[0].win,
|
||||||
" [%s] Shortcuts:\n", tstmp);
|
" [%s] Shortcuts:\n", tstmp);
|
||||||
wprintw(_wins[0].win,
|
wprintw(_wins[0].win,
|
||||||
" [%s] F1 : Console window.\n", tstmp);
|
" [%s] F1 : This console window.\n", tstmp);
|
||||||
wprintw(_wins[0].win,
|
wprintw(_wins[0].win,
|
||||||
" [%s] F2-10 : Chat windows.\n", tstmp);
|
" [%s] F2-10 : Chat windows.\n", tstmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cons_show(char *msg)
|
void cons_show(char *msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user