forked from Mirrors/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
391 B
Rust
23 lines
391 B
Rust
#[macro_use]
|
|
extern crate helix_view;
|
|
|
|
pub mod application;
|
|
pub mod args;
|
|
pub mod commands;
|
|
pub mod compositor;
|
|
pub mod config;
|
|
pub mod job;
|
|
pub mod keymap;
|
|
pub mod ui;
|
|
|
|
#[cfg(not(windows))]
|
|
fn true_color() -> bool {
|
|
std::env::var("COLORTERM")
|
|
.map(|v| matches!(v.as_str(), "truecolor" | "24bit"))
|
|
.unwrap_or(false)
|
|
}
|
|
#[cfg(windows)]
|
|
fn true_color() -> bool {
|
|
true
|
|
}
|