diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-22 13:02:00 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-22 13:02:00 +0000 |
| commit | 8e37a18083e8cdba1cfd4ee042d8f8edf7cfad39 (patch) | |
| tree | 545c9aea0fdba18420c70ff33967a071b4cf4d16 /sixel.h | |
| parent | sixel: use terminal's background color, not palette[0] (diff) | |
sixel: application configurable palette size (color count)
This implements the CSI escapes for retrieving and (re)setting the
palette size.
Diffstat (limited to 'sixel.h')
| -rw-r--r-- | sixel.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2,8 +2,15 @@ #include "terminal.h" +#define SIXEL_MAX_COLORS 1024u + void sixel_init(struct terminal *term); void sixel_put(struct terminal *term, uint8_t c); void sixel_unhook(struct terminal *term); void sixel_destroy(struct sixel *sixel); + +void sixel_colors_report_current(struct terminal *term); +void sixel_colors_reset(struct terminal *term); +void sixel_colors_set(struct terminal *term, unsigned count); +void sixel_colors_report_max(struct terminal *term); |
