//! Whether ANSI colors should be emitted on stdout.
//!
//! Colors are on by default (preserving behavior for library consumers that
//! never call [`detect_colors`]). The binary calls `detect_colors` once at
//! startup: colors stay on only when stdout is a terminal and the user has
//! not set `NO_COLOR`. When piped, output is plain so downstream tools see
//! clean text.
use IsTerminal;
use ;
static ENABLED: AtomicBool = new;
/// True when log formatting should emit ANSI escape sequences.
/// Decide color support once at process start: only when stdout is a TTY and
/// `NO_COLOR` is unset or empty (per https://no-color.org).