On Mon, 1 Dec 2008, Sentinel wrote:
I've been seeing a lot of mails on 256 colors. My shell can show 256 using
various shell scripts which use escape sequences.
btw, when i print Ncurses.COLORS in my program, i get 256.
But how can i refer to 256 colors in Ncurses ?
It has to be built with the ext-colors configure option (to provide enough
bits in cchar_t to store the color information).
xterm can be built to display 256 colors (again, an option). rxvt also can
be built to do this. konsole and gnome-terminal provide a hardcoded palette
for this (though iirc, one is hardcoded to use the 88-color palette, and the
other for 256). Ditto for PuTTY. Probably some others do this, but I
haven't seen any reliable comments.
The corresponding $TERM's are the "-256color" entries that ncurses provides.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net