Skip to main content

color_enabled

Function color_enabled 

Source
pub fn color_enabled() -> bool
Expand description

Check if color is enabled on stderr.

Reads NO_COLOR / FORCE_COLOR / CLICOLOR_FORCE and tty status via the supports-color crate. This is the same source owo-colors consults internally.