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

@ -741,6 +741,9 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
.lower_fd = delay_lower_fd,
.upper_fd = delay_upper_fd,
},
.sixel = {
.palette_size = SIXEL_MAX_COLORS,
},
.sixel_images = tll_init(),
.hold_at_exit = conf->hold_at_exit,
.shutdown_cb = shutdown_cb,