From 1b6a04ca5504955c571d1c97504fb45ea0befee4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 8 Jan 2024 01:21:28 +0400 Subject: Initial vendor packages Signed-off-by: Valentin Popov --- vendor/anstyle-query/examples/query.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 vendor/anstyle-query/examples/query.rs (limited to 'vendor/anstyle-query/examples') 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()); +} -- cgit v1.2.3