on master help sign in
Assume true color support on Windows
commitcce34feb4e3f683db90b7bc37eead4c460e7904b authorOmnikar <Omnikar5@gmail.com> dateThu 2 Dec 2021, 22:41 (5 years ago) parent42e6d96
1 file changed+5
helix-term/src/lib.rs+5
helix-term/src/lib.rs+5
@@ -10,8 +10,13 @@ pub mod job;
1010pub mod keymap;
1111pub mod ui;
1212
13+#[cfg(not(windows))]
1314fn true_color() -> bool {
1415 std::env::var("COLORTERM")
1516 .map(|v| matches!(v.as_str(), "truecolor" | "24bit"))
1617 .unwrap_or(false)
1718}
19+#[cfg(windows)]
20+fn true_color() -> bool {
21+ true
22+}