[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Terminfo: 24-Bit/3-byte Color Support
From: |
Thomas Dickey |
Subject: |
Re: Terminfo: 24-Bit/3-byte Color Support |
Date: |
Tue, 15 Oct 2013 20:34:44 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Tue, Oct 15, 2013 at 02:07:01PM +0200, Rüdiger Sonderfeld wrote:
> 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).
yes/no: initc doesn't care what its parameters are. curses uses the
information -
and it has public data structures for storing it.
Also, to know how to do its job, curses maintains a table with all of the color
pairs.
Doesn't sound efficient (the few applications which I can see would use those
escape sequences would have a palette of only a few hundred choices - or they
would have the same problem in handling repaints of the screen).
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature