Created attachment 1702196 [details] Output from systemd's test-terminal-util Description of problem: Some colors in the basic ANSI palette are displayed by xterm in a way that does not allow text to be read. We would like to use those colors for example to color-code message types, e.g. yellow for warnings, red for errors, etc. Please adjust the underlying mapping to RGB so that all the basic colors are readable, in normal and bold variants, with white and black backgrounds both. (And before you ask: no, just using a different color is not a viable option. If we had just one terminal emulator, it would be OK. But we have quite a few different ones, and each one decides to render a different color in unusable fashion, meaning that no matter which color we try to use, somebody is always unhappy. The only option that seems viable in the long run is for terminal emulators to render the basic colors as readable in all terminal emulators so that software can rely on the basic palette. ) Version-Release number of selected component (if applicable): xterm-351-2.fc32.x86_64 Steps to Reproduce: Execute in urxvt: 1. C="$(cat /etc/fstab)" 2. echo -e "\e[93m$C\e[0m" 3. echo -e "\e[93m$C\e[0m" 4. echo -e "\e[1;33m$C\e[0m" Actual results: Yellow text is impossible to read on white background. Green is barely readable.
Hi, I reported this to upstream with proposals how to alter these colors. Now we must wait for the response.
Nice goal, but realistically not possible to achieve: * Yellow won't ever be readable against white * Blue and black just won't mix - see https://invisible-island.net/xterm/xterm.faq.html#dont_like_blue Real applications are designed for either a light background, or a dark one, and the designer has to keep that in mind. By the way, you can program xterm's color palette (and some applications do). So even if you customized the colors, someone could run an application that undoes that.
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle. Changing version to 33.
gnome-terminal gets this right. So it's clearly "realistically possible". I'm aware of custom palettes, but that's a separate topic: if you set a custom pallette, then obviously all promises of readability don't apply. Nevertheless, defaults should be readable.
It's not a "separate topic", because gnome-terminal uses custom palettes (has done so more than ten years). Checking Fedora 33, the default appears to be "GNOME light", which renders "black" as #171421 In other words, it can't even get black right. Some of the other colors (such as blue) are worse. You can of course make a resource file for xterm which copies that scheme, but that's a user preference.
This message is a reminder that Fedora 33 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '33'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 33 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Still no change in F35. Quick test: /usr/lib/systemd/tests/test-terminal-util
This message is a reminder that Fedora Linux 35 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '35'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 35 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
No change with xterm-375-1.fc37.x86_64.
This message is a reminder that Fedora Linux 37 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '37'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 37 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Still an issue in F39. The test is now called /usr/lib/systemd/tests/unit-tests/test-terminal-util.
This message is a reminder that Fedora Linux 39 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '39'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 39 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Still no change with xterm-393-1.fc41.x86_64.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42.