summaryrefslogblamecommitdiff
path: root/helix-term/src/lib.rs
blob: a945b20dedafa11eca62fe394c1e29e716e1d070 (plain) (tree)
1
2
3
4
5
6
7
8
9

                        


                    
               
               
            
               
                          
 
                    



                                                             


                         
#[macro_use]
extern crate helix_view;

pub mod application;
pub mod args;
pub mod commands;
pub mod compositor;
pub mod config;
pub mod health;
pub mod job;
pub mod keymap;
pub mod ui;
pub use keymap::macros::*;

#[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
}