Skip to main content

should_colorize

Function should_colorize 

Source
pub fn should_colorize() -> bool
Expand description

Returns whether colored output should be used.

Returns false if the NO_COLOR environment variable is set (any value) or stdout is not a terminal (that is, piped or redirected).

This follows the NO_COLOR standard.