KazDragon / terminalpp

A C++ library for interacting with ANSI terminal windows.
MIT License
75 stars 10 forks source link

Allow terminals to match colours to the available palette #286

Open KazDragon opened 2 years ago

KazDragon commented 2 years ago

Allow a user to install a palette into a terminal.

Based on the capabilities of a terminal, requested colours will be matched to the palette (e.g. by converting to HSL and checking entries for some kind of distance).

For example, setting a true colour of F00000 might output a high colour of 500 on a terminal that only supports 256 colours.