[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#931670: apt uses yellow for warnings



On Tue, Jul 09, 2019 at 01:52:05AM -0400, Lady Aleena wrote:
> Package: apt
> Version: 1.8.2
> 
> While I was running apt autoremove, I saw a warning. I did not know it was a
> warning at first because I could not read the bright yellow text. I use a
> terminal emulator with a white background. Bright yellow is the only color
> that causes problems on a white background.

This looks like a problem with your terminal emulator, not with apt, and
should be fixed there.

While 256-color or 24-bit palettes are popular today, the basic 16 colors
are still there for a reason.  They are supposed to be readable in any
combination -- if a terminal fails that, it needs to be fixed.  The color
space is too big to excuse not finding 16 points that visually differ.

I've investigated this issue before -- and it turns out human vision is
really bad at distinguishing colours that differ only by the blue component.
Far worse than eg. the CIEDE2000 model claims.

Here's a comparison (should be viewed at a large magnification) with the
traditional non-IBM CGA palette:
https://angband.pl/tmp/16x16_black.html (standard)
https://angband.pl/tmp/ciede2000_16x16.html (reversed)

> I think it might be a good idea to use another color, say bright red or
> bright orange, for warnings. Or you could allow users to set the colors
> themselves.

You can set the colors, by editing your terminal emulator's palette; the
exact means vary.  Could you try doing that?

You are using a reverse black-on-white palette that's very rarely used by
coders (but AFAIK somehow is GNOME Terminal's default), I've found that
it hits this problem the worst.  In fact, in a tool of mine (ansi2html, in
package colorized-logs), I special-cased yellows in the reverse-color mode
all the way to 0xcccc00 for color 14 and 0x806000 for color 6, as only then
such text became good.

There are so many palettes to choose from -- terminal presets should get
fixed instead of other programs to avoid colours (dark blue and bright
yellow).


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ According to recent spams, "all my email accounts are owned
⢿⡄⠘⠷⠚⠋  by a hacker".  So what's the problem?
⠈⠳⣄⠀⠀⠀⠀


Reply to: