diff options
author | James Booth <boothj5@gmail.com> | 2012-02-17 02:18:47 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-02-17 02:18:47 +0000 |
commit | 3be7dc9c6ff9ca2ef3a775ef57337889a037a0dd (patch) | |
tree | 12067c9699f7287af97a77f214fa489e0aa9b583 | |
parent | 672906dd1d16fe30fffb59377b8800ba35903218 (diff) | |
download | profani-tty-3be7dc9c6ff9ca2ef3a775ef57337889a037a0dd.tar.gz |
Always show windows in status bar
-rw-r--r-- | status_bar.c | 5 | ||||
-rw-r--r-- | 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) |