From 3be7dc9c6ff9ca2ef3a775ef57337889a037a0dd Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 17 Feb 2012 02:18:47 +0000 Subject: [PATCH] Always show windows in status bar --- status_bar.c | 5 +++++ windows.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/status_bar.c b/status_bar.c index 7189cc9e..66eb3f9a 100644 --- a/status_bar.c +++ b/status_bar.c @@ -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) diff --git a/windows.c b/windows.c index 4ca76f34..fb94cbbc 100644 --- a/windows.c +++ b/windows.c @@ -132,15 +132,15 @@ 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); + " [%s] F2-10 : Chat windows.\n", tstmp); } void cons_show(char *msg)