sharkdp / pastel

A command-line tool to generate, analyze, convert and manipulate colors
Apache License 2.0
5.04k stars 97 forks source link

Strategy to handle terminals without 24bit support #33

Closed sharkdp closed 5 years ago

sharkdp commented 5 years ago

We distinguish 3 modes:

Note that we ignore the 16-color ANSI mode, as we can't really predict how the 16 colors look like.

We choose the mode in the following way:

Further literature: https://gist.github.com/XVilka/8346728

sharkdp commented 5 years ago

This can now be easily done with ansi::Brush