From 26238c9a245c32fae026a268c156352a4e56e503 Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Sun, 11 May 2014 20:08:49 -0400 Subject: [PATCH] Flush before applying console attributes --- src/libterm/win.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libterm/win.rs b/src/libterm/win.rs index 252c21ab9fa..837ddf566ef 100644 --- a/src/libterm/win.rs +++ b/src/libterm/win.rs @@ -57,6 +57,7 @@ fn color_to_bits(color: color::Color) -> u16 { impl WinConsole { fn apply(&mut self) { + let _unused = self.buf.flush(); let mut accum: libc::WORD = 0; accum |= color_to_bits(self.foreground); accum |= color_to_bits(self.background) << 4;