On Thu, 12 Nov 2009, Andy Spencer wrote: > * Supports both 16 and 265 color terminals > * 16 color output supports ascii and utf8 brightness > > Signed-off-by: Andy Spencer <andy753...@gmail.com> > --- > > Here's an updated patch that uses setupterm and tigetnum, it also adds a > check for curses and term.h in configure.ac.. > > When I test it in xterm, it says it only supports 8 colors, even though > running colortest works correctly with all 256 colors so I'm not sure > what's going on there.
then your $TERM is set incorrectly - you didn't say which emulator you're using. For example, it might be xterm-256color, or gnome-256color (even on Solaris, you can install ncurses's terminfo database, thereby getting usable data ;-) > From what I can tell, there's a difference in the color tables for 8 > color and 16 color terminals? Does anyone have any suggestions on how to > actually test these? (e.g. old terminals that only support 8/16 colors) There's no reliable way to _ask_ the terminfo what it supports. (xterm does provide escape sequences, but those are missing or dummy'd out in other terminal emulators). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net _______________________________________________ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg