Moved command processing to main loop, allow resize during password prompt

This commit is contained in:
James Booth
2015-02-05 00:58:23 +00:00
parent 30180ac8bb
commit a70aa0255f
6 changed files with 53 additions and 28 deletions

View File

@@ -82,10 +82,18 @@ prof_run(const int disable_tls, char *log_level, char *account_name)
log_info("Starting main event loop");
char *line = NULL;
while(cont) {
_check_autoaway();
cont = ui_readline();
line = ui_readline();
if (line) {
cont = cmd_process_input(line);
free(line);
line = NULL;
} else {
cont = TRUE;
}
#ifdef HAVE_LIBOTR
otr_poll();