summaryrefslogtreecommitdiffstats
path: root/vendor/anstyle-query/examples/query.rs
blob: 322811471ffb262079e799607ee5ae31b375bc44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
fn main() {
    println!("clicolor: {:?}", anstyle_query::clicolor());
    println!("clicolor_force: {}", anstyle_query::clicolor_force());
    println!("no_color: {}", anstyle_query::no_color());
    println!(
        "term_supports_ansi_color: {}",
        anstyle_query::term_supports_ansi_color()
    );
    println!(
        "term_supports_color: {}",
        anstyle_query::term_supports_color()
    );
    println!("truecolor: {}", anstyle_query::truecolor());
    println!(
        "enable_ansi_colors: {:?}",
        anstyle_query::windows::enable_ansi_colors()
    );
    println!("is_ci: {:?}", anstyle_query::is_ci());
}