aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
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.h
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.h')
-rw-r--r--terminal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 882abfba..e0738057 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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;