Skip to main content

Module color

Module color 

Source
Expand description

Minimal ANSI colouring with no external crate.

When colour is disabled (--no-color, the NO_COLOR env var, or a non-terminal stdout) every helper returns the text unchanged, so callers can colour unconditionally and let the Palette decide.

Structsยง

Palette
A colour policy: either emits ANSI SGR codes or is the identity.