bug-ncurses
[Top][All Lists]
Advanced

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

Usage of of init_extended_color


From: Roger Pau Monné
Subject: Usage of of init_extended_color
Date: Sun, 18 Mar 2018 15:58:21 +0000
User-agent: NeoMutt/20180223

Hello,

I'm looking into modifying a ncurses based application so it can make
use of more than the default 256 color xterm palette, but I'm having
some issues figuring out how to do that. The terminal I'm using
supports truecolor and has COLORTERM=truecolor set in the environment.

I need to keep support for the already existing xterm-256 color
palette, so AFAICT the 0..255 color values cannot be modified in order
to keep existing users. I though that using the new
init_extended_color would allow me to define color values > 255, but
that doesn't seem to work. COLORS is still 256, and trying to define
any color value greater than 255 doesn't work.

Is there anything that should be done in order to expand the number of
available color values beyond 256?

How should more colors be added without overwriting the ones in the
xterm-256 system palette?

Please keep me in the Cc since I'm not subscribed.

Thanks, Roger.



reply via email to

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