When I set the window colors with color_set, for some reason newline and 'clear' insist on a black background. How may I keep the entire window coloured?
Logged In: YES
bkgdset() or bkgd().
This is not a bug, but I'll take a closer look at what other implementations do. As you may have noticed, color support was kind of tacked-on to curses, and it's awkward to use.
Logged In: NO
I tried bkgd() and bkgdset() but all I could get was the window filled with a different ascii chars. Thanks for looking into it, we're working on fully implementing PDcurses into the console mode of Reva Forth, a programming language.
You have to use "bkgd(COLOR_PAIR(n))" to set the color (contrast with "color_set(n, NULL)" -- no COLOR_PAIR() macro is used).
Thanks, I didn't know about COLOR_PAIR, that did the trick.