Skip to main content

color_enabled

Function color_enabled 

Source
pub fn color_enabled() -> bool
Expand description

Returns the active color decision. If init_from_cli was never called (e.g. in a library test that bypasses main), this defaults to false to avoid leaking escapes.