----- Original Message -----
| From: "Amadeusz Sławiński" <am...@asmblr.net>
| To: "Marcin Cieslak" <sa...@saper.info>
| Cc: "Screen development" <screen-devel@gnu.org>, "Thomas E. Dickey" 
<dic...@invisible-island.net>,
| scr...@uni-erlangen.de
| Sent: Saturday, November 10, 2018 4:50:43 PM
| Subject: Re: [screen-devel] [bug #54989] incorrect use of tparm

| On Sat, 10 Nov 2018 21:22:22 +0000
| Marcin Cieslak <sa...@saper.info> wrote:
| 
|> On Sat, 10 Nov 2018, Amadeusz Sławiński wrote:
|> 
|> > Still 'infocmp xterm-direct|grep -i rgb' returns nothing, should I be 
checking
|> > colors# (D_CCO == 32767 check in code above) and pairs#, or am I
|> > misunderstaning something?
|> 
|> From what I understand there is no true color support in termcap/terminfo 
yet -
|> both colors# and pairs# seem to be inadequate to that.
|> 
|> This above is based on https://stackoverflow.com/a/36163656 but maybe things
|> have improved somehow...
|> 
|> Marcin
...

| used RGB capability in new *-direct entries to denote direct-color feature."
| 
| From above you can see that information that terminal supports
| direct-color is supposed to be exposed with RGB extension, however I
| don't see it here when looking at terminfo files with infocmp.

The RGB extension tells ncurses how to compute values in "color_content".

https://invisible-island.net/ncurses/man/curs_color.3x.html

The manual page lists new functions which provide the ability to
manipulate color- and colorpair-values with more than 16-bits

| $ infocmp xterm-direct
| #       Reconstructed via infocmp from file: 
/usr/share/terminfo/x/xterm-direct
| xterm-direct|xterm with direct-color indexing,
|        am, bce, km, mc5i, mir, msgr, npc, xenl,
|        colors#0x1000000, cols#80, it#8, lines#24, pairs#0x10000,

That's omitting the "-x" option.  With it,

xterm-direct|xterm with direct-color indexing,
        OTbs, am, bce, km, mc5i, mir, msgr, npc, xenl, AX, RGB, XT,
        colors#0x1000000, cols#80, it#8, lines#24, pairs#0x10000,
        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,

-- 
Thomas E. Dickey <dic...@invisible-island.net>
http://invisible-island.net
ftp://ftp.invisible-island.net

Reply via email to