|
From: | Thomas Dickey |
Subject: | Re: how to determine startvalue for init_color |
Date: | Sun, 22 Jan 2006 17:43:38 -0500 (EST) |
On Sun, 22 Jan 2006, Folkert van Heusden wrote:
Hi, How can I determine what color-indexes I can use for my own colors? E.g.: init_color(color, r, g, b); Now for color, COLOR_RED, COLOR_BLACK are already defined, at what index for 'color' can I start defining colors WITHOUT destroying the default ones?
You should be able to independently redefine any of the colors using initc. The ncurses test program's 'd' screen uses this feature for terminals that support it.
The program also accepts a command line option -p which lets it load a set of color data from a file. See the ".dat" files in ncurses/test for an example.
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |