Skip to content

Commit 26238c9

Browse files
committed
Flush before applying console attributes
1 parent 2cd32a8 commit 26238c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libterm/win.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ fn color_to_bits(color: color::Color) -> u16 {
5757

5858
impl<T: Writer> WinConsole<T> {
5959
fn apply(&mut self) {
60+
let _unused = self.buf.flush();
6061
let mut accum: libc::WORD = 0;
6162
accum |= color_to_bits(self.foreground);
6263
accum |= color_to_bits(self.background) << 4;

0 commit comments

Comments
 (0)