Re: [dev] [dvtm] Truecolor support

From: Marc André Tanner <>
Date: Mon, 27 Oct 2014 18:19:48 +0100

On Mon, Oct 27, 2014 at 02:11:49PM +0100, wrote:
> Hi,
> > Apparently curses provides:
> >
> > int init_color(short color, short r, short g, short b);
> >
> > not quite sure what it does internally.
> There is no support for true color in terminfo, so curses cannot
> handle it.

Is this a fundamental limitation or just a lack of standardization?

Also what does the init_color function actually do then? Does it
fall back to a color which best approximates the one given?

> If your application need it the only way is to print
> directly the sequences, and the only way to detect if the terminal
> has this capability is to check TERM against a list of terminals
> that suppor it.

Well this sucks. How would you detect old version of these terminals
which do not yet have support built in? The whole point of
terminfo/curses is to abstract away these ugly details.

 Marc André Tanner >< >< GPG key: CF7D56C0
Received on Mon Oct 27 2014 - 18:19:48 CET

This archive was generated by hypermail 2.3.0 : Mon Oct 27 2014 - 18:24:08 CET