bug-ncurses
[Top][All Lists]
Advanced

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

Re: Terminfo: 24-Bit/3-byte Color Support


From: Rüdiger Sonderfeld
Subject: Re: Terminfo: 24-Bit/3-byte Color Support
Date: Tue, 15 Oct 2013 14:07:01 +0200
User-agent: KMail/4.10.5 (Linux/3.8.0-30-generic; KDE/4.10.5; x86_64; ; )

On Tuesday 15 October 2013 06:50:14 Thomas Dickey wrote:
> On Tue, Oct 15, 2013 at 12:06:26PM +0200, Rüdiger Sonderfeld wrote:
> >     colors#16777216,
> 
> That won't work with terminfo, which uses signed 16-bit numbers.
> 
> If slang used ncurses' terminfo interface (it does not),
> I might consider making an extension,
> but I'd get too much interference from packagers to consider that.
> 
> Compatibility bites.

Changing terminfo to wider integers is probably not necessary.  This could be 
treated completely as an extension when setrgbf/setrgbb are added.

> >     setrgbf=\E[38;2;#1%d;#2%d;#3%dm,
> >     setrgbb=\E[48;2;#1%d;#2%d;#3%dm,
> 
> initc seems to do what's already needed - even for this item.

But initc is still limited to the 256 color index table.  Even if colors is 
extended then it is limited to 32767 colors (signed 16-bit).

Regards,
Rüdiger

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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