bug-ncurses
[Top][All Lists]
Advanced

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

Re: color_set(0, NULL);


From: Thomas Dickey
Subject: Re: color_set(0, NULL);
Date: Tue, 2 Dec 2003 06:30:44 -0500 (EST)

On Tue, 2 Dec 2003, george wrote:

>
> Hello,
>
> I am writing a guide for ncurses and I run into this 'bug':
>
> I expected that color_set(0,NULL); would change the
> colors back to normal (white fg, black bg) but I prooved wrong.
>
> Here are the facts:
>
> short f,b;
> pair_content(0,&f,&b);
> correctly prints f=7 and b=0
>
> int i;
> init_pair(1,COLOR_RED,COLOR_BLACK);
> color_set(1,NULL);
> printw("RED\n");
> i=color_set(0,NULL);
> printw("WHITE\n);
>
> well RED is red but WHITE is red too
> while i is OK (return value)
>
> Of course this is not a major bug since I can make a new pair
> for COLOR_WHITE,COLOR_BLACK and use this new pair number, but
> shouldnt the zero pair work ?

offhand it looks like a bug (will look closer).

> Also, I wonder if I can find the archive of this list somewhere?

see http://mail.gnu.org

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]