diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-10-03 14:44:41 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-10-03 15:57:00 +0200 |
commit | 56dec05d29098b151421625c68525c2c3961e574 (patch) | |
tree | 61dfb1b094344451c14b5e1adad9632c5631d8e8 /src/libsystemd-terminal/term.h | |
parent | cad8fe9a2b2ac340ef69233dd32e1bb1e45dae48 (diff) |
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.
Diffstat (limited to 'src/libsystemd-terminal/term.h')
-rw-r--r-- | src/libsystemd-terminal/term.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/term.h b/src/libsystemd-terminal/term.h index 5228ce0601..8efd48b263 100644 --- a/src/libsystemd-terminal/term.h +++ b/src/libsystemd-terminal/term.h @@ -97,6 +97,8 @@ struct term_attr { unsigned int hidden : 1; /* hidden */ }; +void term_attr_to_argb32(const term_attr *attr, uint32_t *fg, uint32_t *bg, const uint8_t *palette); + /* * UTF-8 */ |