termwiz: windows: fix default text foreground color

We were defaulting to bright white for `CellAttributes::default()`
rather than standard grey.

heads up @quark-zju and @markbt
This commit is contained in:
Wez Furlong committed 2020-04-04 13:52:20 -07:00
1 parent 466961f9c3
commit fb6d0bbc7c
3 files changed
+3 -3

No files matched your search

Generated
+1 -1
View File
@@ -2982,7 +2982,7 @@ dependencies = [
[[package]]
name = "termwiz"
version = "0.7.0"
version = "0.7.1"
dependencies = [
"anyhow",
"base64 0.10.1",
+1 -1
View File
@@ -1,7 +1,7 @@
[package]
authors = ["Wez Furlong"]
name = "termwiz"
version = "0.7.0"
version = "0.7.1"
edition = "2018"
repository = "https://github.com/wez/wezterm"
description = "Terminal Wizardry for Unix and Windows"
+1 -1
View File
@@ -69,7 +69,7 @@ fn to_attr_word(attr: &CellAttributes) -> u16 {
let fg = match attr.foreground {
ColorAttribute::TrueColorWithDefaultFallback(_) | ColorAttribute::Default => {
FOREGROUND_BLUE | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY
FOREGROUND_BLUE | FOREGROUND_RED | FOREGROUND_GREEN
}
ColorAttribute::TrueColorWithPaletteFallback(_, idx)