2021-06-18 02:09:10 +04:00
|
|
|
#[macro_use]
|
|
|
|
extern crate helix_view;
|
|
|
|
|
2021-06-07 08:40:21 +04:00
|
|
|
pub mod application;
|
|
|
|
pub mod args;
|
|
|
|
pub mod commands;
|
|
|
|
pub mod compositor;
|
2021-06-17 15:08:05 +04:00
|
|
|
pub mod config;
|
2022-03-08 09:25:46 +04:00
|
|
|
pub mod health;
|
2021-06-28 16:48:38 +04:00
|
|
|
pub mod job;
|
2021-06-07 08:40:21 +04:00
|
|
|
pub mod keymap;
|
|
|
|
pub mod ui;
|
2022-03-25 13:05:20 +04:00
|
|
|
pub use keymap::macros::*;
|
2021-11-14 16:26:48 +04:00
|
|
|
|
2021-12-03 07:41:13 +04:00
|
|
|
#[cfg(not(windows))]
|
2021-11-14 16:26:48 +04:00
|
|
|
fn true_color() -> bool {
|
|
|
|
std::env::var("COLORTERM")
|
|
|
|
.map(|v| matches!(v.as_str(), "truecolor" | "24bit"))
|
|
|
|
.unwrap_or(false)
|
|
|
|
}
|
2021-12-03 07:41:13 +04:00
|
|
|
#[cfg(windows)]
|
|
|
|
fn true_color() -> bool {
|
|
|
|
true
|
|
|
|
}
|