diff options
author | James Booth <boothj5@gmail.com> | 2012-11-19 23:15:42 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-11-19 23:15:42 +0000 |
commit | 118d97cd90701bcc05e286f35dae6f84ef92a3ff (patch) | |
tree | a54015e65b736711a460eabb89665896f6bfbb9d /src/status_bar.c | |
parent | 346ed2a8e861457effcba6c7c7cc76f660ece40b (diff) | |
download | profani-tty-118d97cd90701bcc05e286f35dae6f84ef92a3ff.tar.gz |
Handling commands after /disconnect
Diffstat (limited to 'src/status_bar.c')
-rw-r--r-- | src/status_bar.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/status_bar.c b/src/status_bar.c index 8d79fe5d..bfd25fca 100644 --- a/src/status_bar.c +++ b/src/status_bar.c @@ -219,6 +219,33 @@ status_bar_clear(void) dirty = TRUE; } +void +status_bar_clear_message(void) +{ + if (message != NULL) { + free(message); + message = NULL; + } + + wclear(status_bar); + + int cols = getmaxx(stdscr); + + wattron(status_bar, COLOUR_BAR_DRAW); + mvwprintw(status_bar, 0, cols - 29, _active); + wattroff(status_bar, COLOUR_BAR_DRAW); + + int i; + for(i = 0; i < 9; i++) { + if (is_new[i]) + status_bar_new(i+1); + else if (is_active[i]) + status_bar_active(i+1); + } + + dirty = TRUE; +} + static void _status_bar_update_time(void) { |