win: flush output buffer before doing a console reset

This commit is contained in:
Bert Belder 2011-10-21 18:38:20 -07:00
parent 2dd02829c1
commit 45882e0bdc

View File

@ -1334,6 +1334,7 @@ static int uv_tty_write_bufs(uv_tty_t* handle, uv_buf_t bufs[], int bufcnt,
case 'c':
/* Full console reset. */
FLUSH_TEXT();
uv_tty_reset(handle, error);
ansi_parser_state = ANSI_NORMAL;
continue;