bug-ncurses
[Top][All Lists]
Advanced

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

color_set(0, NULL);


From: george
Subject: color_set(0, NULL);
Date: Tue, 2 Dec 2003 02:43:09 +0200 (EET)

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 ?

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

Thank you all.


George Andreou
Student @ Applied Mathematics Department, UOC.







reply via email to

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