[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How should applications use direct-color mode?
From: |
Sven Joachim |
Subject: |
Re: How should applications use direct-color mode? |
Date: |
Sun, 15 Apr 2018 20:45:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
On 2018-04-15 11:28 -0400, Thomas Dickey wrote:
> On Sun, Apr 15, 2018 at 10:29:48PM +1000, Tim Allen wrote:
>> On Sun, Apr 15, 2018 at 06:59:37AM -0400, Thomas Dickey wrote:
>> > On Sun, Apr 15, 2018 at 03:05:06PM +1000, Tim Allen wrote:
>> > > "color values are expected to be in the range 0 to COLORS-1, inclusive
>> > > (including 0 and COLORS-1)", and at least with the ncurses 6.1+20180210-1
>> > > library from Debian Experimental "TERM=xterm-direct tput colors" prints
>> > > 32767, or 0x7FFF.
I get 16777216 here. Tim, are you sure you have installed both
ncurses-bin and ncurses-term from experimental?
>> > That's because it's an application using the 16-bit values.
>> > A 32-bit terminfo application would probably give a different result.
>>
>> Hmm... ldd says the version of tput I'm using is linked against
>> libtinfo.so.6, so I assumed it was using the latest ABI with all the
>> associated expansions and features. Although, since Debian ships both
>> an ABI v5 library and an ABI v6 library, and I guess they need to share
>> the same terminal database, perhaps Debian's still building terminfo in
>> 16-bit mode?
>
> Something like that. I've not been paying close attention to their progress,
> but recall some recent (in the past month or so) comment that they'll start
> packaging the updates for 6.1 "soon".
These are available in experimental, uploads to unstable are currently
blocked by https://bugs.debian.org/894049.
Cheers,
Sven