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
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
|
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
Saturday, 02 May 2020, 10:30 GMT
Reason for closing: Implemented
Additional comments about closing: filesystem 2020.05-1
ANSI_COLOR="38;2;23;147;209m"
I'll update this variable to:
ANSI_COLOR="38;2;23;147;209"
Note: the final m was dropped from your proposal.