Skip to main content

is_rich

Function is_rich 

Source
pub fn is_rich() -> bool
Expand description

Whether decorative UI may animate (bars/spinners) and color may be emitted.

Plain mode (the inverse) is selected when stdout is not a terminal — piped, redirected, or running under CI — or when the operator has set NO_COLOR (https://no-color.org/). In plain mode we emit terse, uncolored status lines and never draw a spinner or bar.