pub trait ConsoleOutputFeatures {
// Required methods
fn is_atty(&self) -> bool;
fn enable_ansi(&self) -> bool;
}Expand description
Describe an arbitrary set of features that are available on an output.
Most outputs should automatically have this implemented, but if you’re using a custom type you may need to implement it yourself.
Required Methods§
Sourcefn enable_ansi(&self) -> bool
fn enable_ansi(&self) -> bool
Attempt to enable ANSI support, this will return whether or not enabling was successful.