Skip to main content

Module colors

Module colors 

Source

Functions§

bold
cyan
dim
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.
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.