[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 06:50:14 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Tue, Oct 15, 2013 at 12:06:26PM +0200, Rüdiger Sonderfeld wrote:
> Hello,
>
> it seems that some terminals now support for 24-bit RGB color values. It
> seem
sort of - let's not get distracted by relative success.
It's an encoding.
> to have started with KDE's Konsole[1]. But iTerm.app is adding support in
> the
> next release as well[2]. Terminfo should provide a way to support 24-bit RGB
> colors.
>
> As far as I see it, the best approach would be to add new variable `setrgbf'
> and `setrgbb'. And potentially CMY/CMYK versions.
>
> E.g., the entries could look like
>
> konsole+24bit|KDE console 24bit/3byte RGB color feature,
> 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.
> 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.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature