Added status bar refresh to main loop

This commit is contained in:
James Booth
2012-02-12 22:34:31 +00:00
parent bff2210b7f
commit e112ef5aac
4 changed files with 22 additions and 15 deletions

View File

@@ -18,6 +18,7 @@ void profanity_start(void)
char cmd[50];
while (cmd_result == AWAIT_COMMAND) {
status_bar_refresh();
inp_get_command_str(cmd);
cmd_result = handle_start_command(cmd);
}
@@ -51,7 +52,7 @@ static void _profanity_event_loop(int *ch, char *cmd, int *size)
{
usleep(1);
status_bar_update_time();
status_bar_refresh();
// handle incoming messages
jabber_process_events();