Share

Public Domain Curses

Tracker: Bugs

5 init_color does not initialize the color (without fail) - ID: 2842589
Last Update: Settings changed ( wmcbrine )

OS : Windows 7 RC
version : pdcurses 3.4 with unicode support

When try I to init a color with init_color, the color does not change. The
test given with source code (testcurs.c) do'nt work too.
With the uploaded file, I've the ouput :
"<default colors>
Has colors : yes, can change color : yes, COLORS : 16, COLOR_PAIRS : 256
COLOR_RED : 502, 0, 0</>
<red>Red</>
<red/same line>yet green</>"


Bmauet ( cbaptiste ) - 2009-08-22 13:36

5

Open

Accepted

William McBrine

None

None

Public


Comment ( 1 )




Date: 2009-09-08 03:07
Sender: wmcbrineProject AdminAccepting Donations

For Win32, init_color() uses an undocumented API. It's not too surprising
that it would break in Win 7. It could take a long time to fix this, if
ever -- so far I haven't found any info on the right way to do it in Win 7,
assuming that one even exists.

Sorry for the delay in replying. I thought this thing was supposed to
email me when a new bug was entered.


Log in to comment.

Attached File ( 1 )

Filename Description Download
curses.c A test for init_color Download

Changes ( 3 )

Field Old Value Date By
resolution_id None 2009-09-08 03:07 wmcbrine
assigned_to nobody 2009-09-08 03:07 wmcbrine
File Added 340170: curses.c 2009-08-22 13:36 cbaptiste