Skip to content

Commit

Permalink
Flush before applying console attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed May 16, 2014
1 parent 2cd32a8 commit 26238c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libterm/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ fn color_to_bits(color: color::Color) -> u16 {

impl<T: Writer> WinConsole<T> {
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;
Expand Down

0 comments on commit 26238c9

Please sign in to comment.