Terminals use pseudo color-codes mixed with 8bit and 24bit colors. Provide a color-converter so external renderers only have to deal with ARGB32 colors.
This requires a color-palette as input as there's no fixed mapping. We provide a default, but maybe we wanna support external palettes in the future.
56dec05 terminal/screen: add color converter
src/libsystemd-terminal/term-parser.c | 116 +++++++++++++++++++++++++++++++++
src/libsystemd-terminal/term-screen.c | 26 +-------
src/libsystemd-terminal/term.h | 2 +
3 files changed, 120 insertions(+), 24 deletions(-)
Upstream: github.com