Skip to main content

color_enabled

Function color_enabled 

Source
pub fn color_enabled() -> bool
Expand description

Determine if color output should be used.

Returns false if:

  • NO_COLOR environment variable is set
  • stderr is not connected to a TTY