clicolor_force

Function clicolor_force 

Source
pub fn clicolor_force() -> bool
Expand description

Check CLICOLOR_FORCE status

ANSI colors should be enabled no matter what.

Examples found in repository?
examples/query.rs (line 5)
3fn main() {
4    println!("clicolor: {:?}", anstyle_query::clicolor());
5    println!("clicolor_force: {}", anstyle_query::clicolor_force());
6    println!("no_color: {}", anstyle_query::no_color());
7    println!(
8        "term_supports_ansi_color: {}",
9        anstyle_query::term_supports_ansi_color()
10    );
11    println!(
12        "term_supports_color: {}",
13        anstyle_query::term_supports_color()
14    );
15    println!("truecolor: {}", anstyle_query::truecolor());
16    println!(
17        "enable_ansi_colors: {:?}",
18        anstyle_query::windows::enable_ansi_colors()
19    );
20    #[cfg(windows)]
21    println!(
22        "  enable_virtual_terminal_processing: {:?}",
23        anstyle_query::windows::enable_virtual_terminal_processing()
24    );
25    println!("is_ci: {:?}", anstyle_query::is_ci());
26}