One note on this problem - older versions of Netscape caused this
kind of thing pretty often because it tried to grab all the colormaps
it could as soon as it opened. The result? Open Netscape, and then
everything you open afterwards runs out of colors. I haven't checked
the newer versions on an 8-bit display, but I would guess that they
still do the same thing.
Of course, if you are able to run with a higher depth that avoids
this problem altogether. In 16-bit or higher, Netscape is able to get
all the colors it wants and you'll have enough left for other
programs, too.
At 20:31 -0300 5/3/01, Peter Cordes wrote:
On Thu, May 03, 2001 at 10:21:39PM -0700, Paschoud Alain wrote:
> I've two question. The first one concern a color problem which is not only
cosmetic, but is really annoying. For example, when I launch "linuxconf" in
X, a lot of error message appears in the shell, telling me that the color
has not been allocated and that it will be replaced by black. Of course, the
result is that I have only a black window at the end... Difficult to make
configurations when I don't see anything. Does someone has an idea from
where could come the problem ?
You're most likely running 8bit colour. Run at a higher colour depth, or
don't use up so many colours before openning an xterm. (colour allocation
in X works something like this, on a pseudocolor display (or other display
that uses a palette): each of the 256 colours are indices into a table of
24bit RGB colour values. When an app wants a colour, they ask the server
for the RGB colour they want, and if there is room in the colour table, the
server adds the new colour to the colour table and tells the app what index
value to use. If there isn't, then it can use a colour that is close to the
desired one, or it can give up. BTW, the table lookups for drawing on the
screen and stuff are all part of the video hardware, so the 8 bit colour
values get written straight to video RAM. That's why colour cycling works
so well on 8bit colour displays: you just mess with the palette, you don't
have to redraw the whole screen.
--
Michael Heironimus