From 773aad81b514ea2408684c0555efab890d73769c Mon Sep 17 00:00:00 2001 From: Murarth Date: Thu, 12 Mar 2020 23:33:20 -0700 Subject: [PATCH] Windows: Fix clear fills wrong background color --- src/windows/terminal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/terminal.rs b/src/windows/terminal.rs index b664a24..c4aa6cc 100644 --- a/src/windows/terminal.rs +++ b/src/windows/terminal.rs @@ -879,7 +879,7 @@ impl<'a> TerminalWriteGuard<'a> { result_bool(unsafe { FillConsoleOutputAttribute( self.writer.out_handle, - 0, + self.term.default_attrs, n, start, &mut n_chars) })?;