Skip to main content

color_enabled

Function color_enabled 

Source
pub fn color_enabled() -> bool
Expand description

Returns true if colored output is enabled.

Color is disabled when the NO_COLOR environment variable is set (to any value, including empty string).