diff options
author | Valentin Popov <valentin@popov.link> | 2024-01-08 00:21:28 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-01-08 00:21:28 +0300 |
commit | 1b6a04ca5504955c571d1c97504fb45ea0befee4 (patch) | |
tree | 7579f518b23313e8a9748a88ab6173d5e030b227 /vendor/anstyle-query/examples | |
parent | 5ecd8cf2cba827454317368b68571df0d13d7842 (diff) | |
download | fparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.tar.xz fparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.zip |
Initial vendor packages
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'vendor/anstyle-query/examples')
-rw-r--r-- | vendor/anstyle-query/examples/query.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/anstyle-query/examples/query.rs b/vendor/anstyle-query/examples/query.rs new file mode 100644 index 0000000..2e5f021 --- /dev/null +++ b/vendor/anstyle-query/examples/query.rs @@ -0,0 +1,24 @@ +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() + ); + #[cfg(windows)] + println!( + " enable_virtual_terminal_processing: {:?}", + anstyle_query::windows::enable_virtual_terminal_processing() + ); + println!("is_ci: {:?}", anstyle_query::is_ci()); +} |