Re: [Xpert]X default fg and bg colors
On Thursday 25 January 2001 23:53, ha shao wrote:
> On Debian system.
>
> A user reported that on arm710 platform, the default foreground
> color of an window is not set. Only background color is set.
what do you mean by "foreground colour ... is not set"? it would have
to be *something* even if it is garbage. is it "not set" or is it that
both foreground and background colours are set to white?
> While both foreground and background color are set on x86
> platform. I want to know if this is a Debian specific thing or
> an XFree86 thing?
my first exposure to X was using a product called MachTen several years
ago, which was (is) a BSD-based system. i noticed then that my
foreground and background colours would start off being set to white.
> Either the default foreground should be set or not is not important.
> But this inconsistent behavior is very confusing both to users and
> programmers.
although well known, most programmers don't normally rely on global
variables in c being zeroed. regardless of what the docs say, if you
want a foreground of black and a background of white it's probably
always safer to set them explicitly.
(just my two cents)
best regards,
trevor
--
http://home.ica.net/~vjbtlw/
Reply to: