From f4ff71b360590974d4f3c10bfc2d3382d8f50295 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 13 Apr 2020 09:20:25 +0200 Subject: [PATCH] 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 --- man/os-release.xml | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/man/os-release.xml b/man/os-release.xml index 5a5e318f75b..a2e3d0d8ac5 100644 --- a/man/os-release.xml +++ b/man/os-release.xml @@ -192,13 +192,11 @@ ANSI_COLOR= - A suggested presentation color when showing - the OS name on the console. This should be specified as string - suitable for inclusion in the ESC [ m ANSI/ECMA-48 escape code - for setting graphical rendition. This field is optional. - Example: ANSI_COLOR="0;31" for red, or - ANSI_COLOR="1;34" for light - blue. + A suggested presentation color when showing the OS name on the console. This should + be specified as string suitable for inclusion in the ESC [ m ANSI/ECMA-48 escape code for setting + graphical rendition. This field is optional. Example: ANSI_COLOR="0;31" for red, + ANSI_COLOR="1;34" for light blue, or + ANSI_COLOR="0;38;2;60;110;180" for Fedora blue. @@ -220,7 +218,7 @@ BUG_REPORT_URL= PRIVACY_POLICY_URL= - Links to resources on the Internet related to + Links to resources on the Internet related to the operating system. HOME_URL= should refer to the homepage of the operating system, or alternatively some homepage of the @@ -347,14 +345,24 @@ Example NAME=Fedora -VERSION="17 (Beefy Miracle)" +VERSION="32 (Workstation Edition)" ID=fedora -VERSION_ID=17 -PRETTY_NAME="Fedora 17 (Beefy Miracle)" -ANSI_COLOR="0;34" -CPE_NAME="cpe:/o:fedoraproject:fedora:17" +VERSION_ID=32 +PRETTY_NAME="Fedora 32 (Workstation Edition)" +ANSI_COLOR="0;38;2;60;110;180" +LOGO=fedora-logo-icon +CPE_NAME="cpe:/o:fedoraproject:fedora:32" HOME_URL="https://fedoraproject.org/" -BUG_REPORT_URL="https://bugzilla.redhat.com/" +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