aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-22 13:02:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-22 13:02:00 +0000
commit8e37a18083e8cdba1cfd4ee042d8f8edf7cfad39 (patch)
tree545c9aea0fdba18420c70ff33967a071b4cf4d16 /terminal.c
parentsixel: 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 'terminal.c')
-rw-r--r--terminal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index 3350c065..493a8ada 100644
--- a/terminal.c
+++ b/terminal.c
@@ -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,