[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: black & white
From: |
folkert |
Subject: |
Re: black & white |
Date: |
Thu, 19 Sep 2013 13:48:22 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi Thobias,
> > For some reason certain terminal programs (line gnome terminal) swap
> > black and white. So if one uses the ncurses COLOR_BLACK for background
> > and COLOR_WHITE for foreground you get actually the reverse.
> > Unfortunately this behaviour is not consistent: COLOR_GREEN on
> > COLOR_BLACK does give exactly that. As you can imagine, combining these
> > colorpairs give less than ideal results (e.g. your program looking as if
> > it does not completely fill the background).
> >
> > Is there a workaround for this problem?
> > I tried init_color(COLOR_BLACK, 0, 0, 0); init_color(COLOR_WHITE, 999,
> > 999, 999); but that did not help.
>
> I don't know but maybe assume_default_colors(3X) can help you? In the NOTES
> section, the problem mentioned with `ded' sounds similar (but not identic I
> guess).
I tried these:
- use_default_colors()
- assume_default_colors(COLOR_WHITE, COLOR_BLACK)
- assume_default_colors(COLOR_BLACK, COLOR_WHITE)
but none helped.
Suddenly I had an epiphany: I should simply use color pair 0 in the
not-so-special-case!
Folkert van Heusden
--
Meer weten over Bitcoins? http://www.vanheusden.com/bitcoins/
Wintips voor de staatsloterij? http://www.vanheusden.com/sl.php
Huis kopen in Den Haag? http://www.sneeuwbalstraat-denhaag.nl/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com