Handling commands after /disconnect

This commit is contained in:
James Booth
2012-11-19 23:15:42 +00:00
parent 346ed2a8e8
commit 118d97cd90
7 changed files with 97 additions and 18 deletions

View File

@@ -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)
{