sixel: application configurable palette size (color count)

This implements the CSI escapes for retrieving and (re)setting the
palette size.
This commit is contained in:
Daniel Eklöf 2020-02-22 14:02:00 +01:00
parent 5e65db3b07
commit 8e37a18083
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 73 additions and 6 deletions

View file

@ -376,6 +376,9 @@ struct terminal {
unsigned params[5]; /* Collected parmaeters, for RASTER, COLOR_SPEC */
unsigned param; /* Currently collecting parameter, for RASTER, COLOR_SPEC and REPEAT */
unsigned param_idx; /* Parameters seen */
/* Application configurable */
unsigned palette_size;
} sixel;
tll(struct sixel) sixel_images;