[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtaining and setting RGB values

From: Markus Mottl
Subject: Re: Obtaining and setting RGB values
Date: Thu, 29 Oct 2009 10:08:41 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, 29 Oct 2009, Thomas Dickey wrote:
> It's generally impossible to query terminals for these values.
> ncurses initializes its notion of the values without asking.
> It's possible to ask xterm, but iirc none of the other terminal programs that
> claim to "emulate" xterm provide this feature.
> Even as an experimental feature, that's likely to be slow,
> but for the sake of discussion, a demonstration could be constructed.
> Also, _setting_ the palette is generally unimplemented
> (rxvt is an exception).
> When I test that (ncurses with 256 colors), I use one of the palette
> files such as xterm-88color.dat to initialize it, e.g., (using TERM
> set to xterm-88color):
>       ncurses -p xterm-88color.dat
> I could add a xterm-256color.dat file, but don't believe it would malfunction
> if xterm-88color.dat is working, and other than that the test screen would
> be much longer, probably wouldn't see any difference.

Thanks for the information, I think that answers our questions.

> In INSTALL, I documented the configure option to support extended colors:
> That works for 32767 pairs (which is limited by the use of signed-short for
> numbers in terminfo data).  65536 would be best, 65535 might be doable
> but would require some juggling (so far, not an issue).

Ah, I see.  I may have run into this particular issue when testing
the standard installation of ncurses.  This would explain the lack of
color pairs.

Best regards,

Markus Mottl     Jane St. Capital, LLC     address@hidden

Attachment: pgpmSou0CNNdT.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]