KazDragon / terminalpp

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

Add support for True Colour terminals #285

Closed KazDragon closed 2 years ago

KazDragon commented 2 years ago

Adds a new colour type: true_colour.

A foreground colour can be built in the UDL from '(' followed by an RGB hexcode (e.g. "(FF0000Hello!" for a bright red Hello!), and a background colour from ')' followed by an RGB hexcode.

Closes #284


This change is Reviewable

coveralls commented 2 years ago

Coverage Status

Coverage increased (+0.1%) to 98.367% when pulling 7591abf9a9c47d82a28f0f31d24e9c568ad7aca9 on true-colour#284 into 3e9b915aafc60832f93e860038c6b96bfccdf950 on master.

KazDragon commented 2 years ago

implicit conversion from true_colour to colour is deliberate.