chiark / gitweb /
terminal/screen: add color converter
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 3 Oct 2014 12:44:41 +0000 (14:44 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 3 Oct 2014 13:57:00 +0000 (15:57 +0200)
commit56dec05d29098b151421625c68525c2c3961e574
tree61dfb1b094344451c14b5e1adad9632c5631d8e8
parentcad8fe9a2b2ac340ef69233dd32e1bb1e45dae48
terminal/screen: add color converter

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.
src/libsystemd-terminal/term-parser.c
src/libsystemd-terminal/term-screen.c
src/libsystemd-terminal/term.h