Skip to main content

Module colors

Module colors 

Source

Functions§

bold
bold_cyan
bold_yellow_stderr
Bold warning emphasis for sensitive actions rendered on stderr.
cyan
cyan_stderr
dim
dim_stderr
external_presets_note
Returns a formatted note indicating the active external presets directory.
green
presets_overlay_note
Returns a formatted note indicating the active presets overlay directory.
presets_source_note
Returns a formatted note naming the effective base preset source.
red
shell_deployment_note
Returns a formatted note describing how external shell presets are deployed.
status_label
symbol
symbol_stderr
Like symbol, but checks color support against stderr instead of stdout. Use this when the result is printed with eprintln! — checking the wrong stream means color escapes can be wrongly included or omitted when stdout and stderr have different redirection (e.g. cmd > log.txt with a real terminal still attached to stderr).
yellow
yellow_stderr
Like yellow, but checks color support against stderr. See symbol_stderr for why this matters.