1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-10 15:04:32 +03:00

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 2020-04-04 13:48:18 -07:00
parent 466961f9c3
commit fb6d0bbc7c
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -2982,7 +2982,7 @@ dependencies = [
[[package]]
name = "termwiz"
version = "0.7.0"
version = "0.7.1"
dependencies = [
"anyhow",
"base64 0.10.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"

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)