Colors
The [colors] section turns colored output on or off and sets the color of each part of
the output.
use_colors decides whether there are colors at all:
| Value | Colors |
|---|---|
auto (default) | Only on a terminal that can show them |
always | Always, even when the output goes to a file or a pipe |
never | Never, as if every color below were None |
With auto, output to a file or a pipe is plain text, and so is everything when the
environment has NO_COLOR set or CLICOLOR=0, the terminal is TERM=dumb, or an old
Windows console can’t show colors (CLICOLOR_FORCE=1 turns them back on, except in the
last two cases). A change takes effect without a restart.
The other settings pick the color of each part:
| Setting | Colors | Default |
|---|---|---|
source_prompt_color | The prompt, [auto → ru]: , and the corrected word in a spelling notice | None |
target_prompt_color | The provider label, [google]: | BrightYellow |
dictionary_prompt_color | The dictionary label, [Word]: | BrightYellow |
part_of_speech_color | Parts of speech in a dictionary entry (Noun, Глагол) | Cyan |
synonym_color | Synonyms in a dictionary entry, [fierce, brutal] | Green |
notice_color | The spelling-correction notice | Magenta |
error_color | Errors: translation, speech, clipboard, history | Red |
The values: Black, Red, Green, Yellow, Blue, Magenta, Cyan, White, their
bright variants (BrightBlack … BrightWhite), or None for the terminal’s own color.
[colors]
target_prompt_color = "BrightCyan"
synonym_color = "None"
The clipboard and the history file always get plain text.