1 2 3 4 5 6 7 8 9
use owo_colors::{OwoColorize, Stream::Stdout}; fn main() { println!( "{}", "This will be red if viewed through a compatible terminal!" .if_supports_color(Stdout, |x| x.red()) ); }