]> begriffs open source - ai-pg/blob - full-docs/txt/color-which.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / color-which.txt
1
2 N.2. Configuring the Colors #
3
4    The actual colors to be used are configured using the environment
5    variable PG_COLORS (note plural). The value is a colon-separated list
6    of key=value pairs. The keys specify what the color is to be used for.
7    The values are SGR (Select Graphic Rendition) specifications, which are
8    interpreted by the terminal.
9
10    The following keys are currently in use:
11
12    error
13           used to highlight the text “error” in error messages
14
15    warning
16           used to highlight the text “warning” in warning messages
17
18    note
19           used to highlight the text “detail” and “hint” in such messages
20
21    locus
22           used to highlight location information (e.g., program name and
23           file name) in messages
24
25    The default value is error=01;31:warning=01;35:note=01;36:locus=01
26    (01;31 = bold red, 01;35 = bold magenta, 01;36 = bold cyan, 01 = bold
27    default color).
28
29 Tip
30
31    This color specification format is also used by other software packages
32    such as GCC, GNU coreutils, and GNU grep.