1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Add color support for new frontend detail/hint messages

As before, the defaults are similar to gcc's default appearance.
This commit is contained in:
Peter Eisentraut
2022-04-11 17:36:44 +02:00
parent dfd0f2bbc5
commit c215cc7b61
2 changed files with 25 additions and 2 deletions

View File

@ -74,6 +74,14 @@
</listitem>
</varlistentry>
<varlistentry>
<term><literal>note</literal></term>
<listitem>
<para>used to highlight the text <quote>detail</quote> and
<quote>hint</quote> in such messages</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>locus</literal></term>
<listitem>
@ -85,9 +93,11 @@
</para>
<para>
The default value is <literal>error=01;31:warning=01;35:locus=01</literal>
The default value is
<literal>error=01;31:warning=01;35:note=01;36:locus=01</literal>
(<literal>01;31</literal> = bold red, <literal>01;35</literal> = bold
magenta, <literal>01</literal> = bold default color).
magenta, <literal>01;36</literal> = bold cyan, <literal>01</literal> = bold
default color).
</para>
<tip>