Permalink
Browse files

win: flush output buffer before doing a console reset

  • Loading branch information...
1 parent 2dd0282 commit 45882e0bdc778aef0cfa431b940c293a01ec731f @piscisaureus piscisaureus committed Oct 22, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/win/tty.c
View
@@ -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;

0 comments on commit 45882e0

Please sign in to comment.