FS#66217 - [filesystem] /etc/os-relase should use 24bit ANSI colors for ANSI_COLOR= to match correct blue color

Attached to Project: Arch Linux
Opened by Morten Linderud (Foxboron) - Saturday, 11 April 2020, 17:56 GMT
Last edited by Sébastien Luttringer (seblu) - Saturday, 02 May 2020, 10:30 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Currently, ANSI_COLOR in /etc/os-release is set to:

$ grep ^ANSI_COLOR /etc/os-release
ANSI_COLOR="0;36"

This is blue, according to the terminal emulator's palette. However, with my very scientific method of downloading the artwork PNGs and using a color picker. Our actual color is something completely different.

Hence we should use an ANSI color sequence here that matches this color precisely, by specifying the correct R/G/B parameters. i.e.

ANSI_COLOR="38;2;23;147;209m"


To see the difference between this precise 24bit specification of blue and the paletted blue of your terminal emulator, type:

echo -e '\e[38;2;23;147;209mArch Linux blue\e[0m vs. \e[0;36mplain blue\e[0m'

The difference in color varies from terminal emulator to terminal emulator.

(All relevant terminal emulators understand these sequences since a long time, including the Linux kernel)

This bug is very very important, and shamelessly copied from https://bugzilla.redhat.com/show_bug.cgi?id=1823099. Clearly and obviously.
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Saturday, 02 May 2020, 10:30 GMT
Reason for closing:  Implemented
Additional comments about closing:  filesystem 2020.05-1
Comment by Morten Linderud (Foxboron) - Saturday, 11 April 2020, 19:30 GMT
I can't edit. But the correct ANSI_COLOR is

ANSI_COLOR="38;2;23;147;209m"
Comment by Damian Nowak (Nowaker) - Monday, 27 April 2020, 00:52 GMT
Very important, obviously!
Comment by Sébastien Luttringer (seblu) - Saturday, 02 May 2020, 09:57 GMT
I checked into https://www.archlinux.org/static/logos/archlinux-logo-dark-scalable.518881f04ca9.svg code, the color is well #1793d1, so (R,G,B) = (23,147,209).

I'll update this variable to:
ANSI_COLOR="38;2;23;147;209"

Note: the final m was dropped from your proposal.

Loading...