Here's a test case
printf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n"
or http://github.com/robertknight/konsole/tree/master/tests/color-spaces.pl
or https://git.gnome.org/browse/vte/tree/perf/img.sh?h=vte-0-36
According to Wikipedia[1], this is only supported by xterm and konsole.
It's a common confusion about terminal colors... Actually we have this:
plain ascii
ansi escape codes (16 color codes with bold/italic and background)
256 color palette (216 colors+16gray + ansi) (colors are 24bit)
24bit true color (888 colors (aka 16 milion)
The 256 color palete is configured at start, and it's a 666 cube of
colors, each of them defined as a 24bit (888 rgb) color.
This means that current support can only display 256 different colors
in the terminal, while truecolor means that you can display 16 milion
different colors at the same time.
Truecolor escape codes doesnt uses a color palete. It just specifies the
color itself.
[1] https://en.wikipedia.org/wiki/ANSI_color
Here is another terminals discussions:
Now supporting truecolor:
Parsing ANSI color sequences, but approximating them to 256 palette:
Not supporting truecolor:
Here is another console programs discussion:
This is easy to fix by supporting libvte >=0.36 version.
Best regards,
Anton Kochkov.
On Sun, Jul 6, 2014 at 12:49 PM, Anton Kochkov akochkov@users.sf.net wrote:
Related
Feature Requests: #23