From 45882e0bdc778aef0cfa431b940c293a01ec731f Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 21 Oct 2011 18:38:20 -0700 Subject: [PATCH] win: flush output buffer before doing a console reset --- src/win/tty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/win/tty.c b/src/win/tty.c index 46aae272..a7285127 100644 --- a/src/win/tty.c +++ b/src/win/tty.c @@ -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;