Let's paint those bikesheds^Werror messages!

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 27 10:28:42 PDT 2017


On Tue, Jun 27, 2017 at 05:24:46PM +0000, Vladimir Panteleev via Digitalmars-d wrote:
> On Tuesday, 27 June 2017 at 17:11:32 UTC, H. S. Teoh wrote:
> > The cardinal rule of color selection: NEVER only set the foreground
> > color or the background color alone. ALWAYS set both, otherwise you
> > will get invisible text (or barely-visible text, like yellow on
> > white) on somebody's terminal, and they will be very, very angry.
> 
> Nothing actually does that... so I don't think that's true. Maybe on
> the web, but not in terminals.

I've seen complaints from people who have black-on-white terminals (or
vice versa) finding some programs producing unreadable text because the
program set the foreground color to black without also setting the
background.  Of course, it's rare that programs would explicitly set
black or white foreground, but I happen to use a light green background
for my terminals and so a green foreground, for example, would be pretty
unreadable for me.

The point is that you can't predict what the default background color is
set to, so unless you set both, there will always be some case where it
looks bad or is outright unreadable.


T

-- 
What are you when you run out of Monet? Baroque.


More information about the Digitalmars-d mailing list