bug-ncurses
[Top][All Lists]
Advanced

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

Re: Compiling ncurses to support 32768 color pairs


From: Thomas Dickey
Subject: Re: Compiling ncurses to support 32768 color pairs
Date: Sun, 29 Nov 2015 19:21:37 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Nov 29, 2015 at 08:30:15PM +0100, Piotr P. wrote:
> Dear ncurses maintainers,
> 
> I'm sending you this email to ask how to compile ncurses 6.0 to support
> 32768 color pairs. All of my earlier attempts to configure it have met with
> failure. Enabling both --enable-widec and --enable-ext-colors resulted in
> only 256 available pairs, with macro COLOR_PAIRS being used to check the
> value.

The library is *capable* of displaying 32k color pairs, but you still
have to use a terminal description (and terminal) which tells ncurses
that there are that many pairs.

It's "only" 32k because the (longstanding) binary format for terminfo
uses 16-bit signed numbers.

Most of the X Window terminal emulators can do this; they all differ
with regard to function-keys and other features.

Running the "ncurses" test-program with ncurses6 in xterm with
TERM=xterm-256colors, using this menu item:

        C = color test pattern using wide-character calls

the correspond test-screen shows in the top:

        There are 32767 color pairs and 256 colors
        4096x8 matrix of foreground/background colors, bold *off*

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

Attachment: signature.asc
Description: Digital signature


reply via email to

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