pub fn should_use_ansi() -> boolExpand description
Returns whether ANSI escape codes should be emitted to stderr.
Precedence:
NO_COLORset (any value) → false (https://no-color.org standard)CLICOLOR_FORCE=1→ true (force colors even without TTY)- stderr is a terminal → true
- fallback → false