on master help sign in
Assume true color support on Windows
cce34feOmnikar
helix-term/src/lib.rs+5
@@ -10,8 +10,13 @@ pub mod job;
10pub mod keymap;
10pub mod keymap;
11pub mod ui;
11pub mod ui;
12
12
13+#[cfg(not(windows))]
13fn true_color() -> bool {
14fn true_color() -> bool {
14 std::env::var("COLORTERM")
15 std::env::var("COLORTERM")
15 .map(|v| matches!(v.as_str(), "truecolor" | "24bit"))
16 .map(|v| matches!(v.as_str(), "truecolor" | "24bit"))
16 .unwrap_or(false)
17 .unwrap_or(false)
17}
18}
19+#[cfg(windows)]
20+fn true_color() -> bool {
21+ true
22+}