man: update os-release(5) to use 24bit ANSI color in example

Given that ANSI_COLOR= is mostly about branding it probably makes sense
to use RGB rather than paletted colors for them, so that the colors
match the project design as close as possible. Hence, provide a 25bit
RGB example for ANSI_COLOR, and update the overall example to something
newer.

Also see: https://bugzilla.redhat.com/show_bug.cgi?id=1823099
This commit is contained in:
Lennart Poettering 2020-04-13 09:20:25 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 3614df0575
commit f4ff71b360
1 changed files with 22 additions and 14 deletions

View File

@ -192,13 +192,11 @@
<varlistentry> <varlistentry>
<term><varname>ANSI_COLOR=</varname></term> <term><varname>ANSI_COLOR=</varname></term>
<listitem><para>A suggested presentation color when showing <listitem><para>A suggested presentation color when showing the OS name on the console. This should
the OS name on the console. This should be specified as string be specified as string suitable for inclusion in the ESC [ m ANSI/ECMA-48 escape code for setting
suitable for inclusion in the ESC [ m ANSI/ECMA-48 escape code graphical rendition. This field is optional. Example: <literal>ANSI_COLOR="0;31"</literal> for red,
for setting graphical rendition. This field is optional. <literal>ANSI_COLOR="1;34"</literal> for light blue, or
Example: <literal>ANSI_COLOR="0;31"</literal> for red, or <literal>ANSI_COLOR="0;38;2;60;110;180"</literal> for Fedora blue.</para></listitem>
<literal>ANSI_COLOR="1;34"</literal> for light
blue.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
@ -220,7 +218,7 @@
<term><varname>BUG_REPORT_URL=</varname></term> <term><varname>BUG_REPORT_URL=</varname></term>
<term><varname>PRIVACY_POLICY_URL=</varname></term> <term><varname>PRIVACY_POLICY_URL=</varname></term>
<listitem><para>Links to resources on the Internet related to <listitem><para>Links to resources on the Internet related to
the operating system. the operating system.
<varname>HOME_URL=</varname> should refer to the homepage of <varname>HOME_URL=</varname> should refer to the homepage of
the operating system, or alternatively some homepage of the the operating system, or alternatively some homepage of the
@ -347,14 +345,24 @@
<title>Example</title> <title>Example</title>
<programlisting>NAME=Fedora <programlisting>NAME=Fedora
VERSION="17 (Beefy Miracle)" VERSION="32 (Workstation Edition)"
ID=fedora ID=fedora
VERSION_ID=17 VERSION_ID=32
PRETTY_NAME="Fedora 17 (Beefy Miracle)" PRETTY_NAME="Fedora 32 (Workstation Edition)"
ANSI_COLOR="0;34" ANSI_COLOR="0;38;2;60;110;180"
CPE_NAME="cpe:/o:fedoraproject:fedora:17" LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:32"
HOME_URL="https://fedoraproject.org/" HOME_URL="https://fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"</programlisting> DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f32/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=32
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=32
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation</programlisting>
</refsect1> </refsect1>
<refsect1> <refsect1>