Skip to main content

Module color

Module color 

Source
Expand description

ANSI color palette utilities. ANSI color palette for CLI output.

Returns populated escape sequences when stdout is an interactive terminal and NO_COLOR is unset; otherwise returns empty strings so output remains plain for pipes, redirects, and CI environments.

Structs§

Palette
A set of ANSI escape sequences (or empty strings when color is disabled).

Functions§

palette
Returns the color palette appropriate for stdout.