On 2014-10-27 21:11, k...@shike2.com 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. 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.
A simpler possibility is to let it enabled by default and let the user
switch it off with a command line argument (like it's done for the mouse
grabbing). I think it would make sense as all major terminal emulators
support true color.
Paride