aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-16 18:11:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-23 09:36:02 +0000
commit03c675c6e2d9152da363eefcb1a2c3b059aac2ba (patch)
treee6b4e6c85be33e749cde0880a2765be6c64b46cf /terminal.h
parentMerge branch 'sixel-private-color-registers' (diff)
sixel: implement private mode 8452 - cursor positioning after sixel
When disabled (the default), the cursor is positioned on a new line after emitting a sixel image. When enabled, the cursor is positioned to the right of the sixel image. Closes #363
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 632f6029..898a5770 100644
--- a/terminal.h
+++ b/terminal.h
@@ -361,6 +361,7 @@ struct terminal {
uint32_t ime:1;
uint32_t sixel_private_palette:1;
+ uint32_t sixel_cursor_right_of_graphics:1;
} xtsave;
char *window_title;
@@ -538,6 +539,8 @@ struct terminal {
unsigned param; /* Currently collecting parameter, for RASTER, COLOR_SPEC and REPEAT */
unsigned param_idx; /* Parameters seen */
+ bool cursor_right_of_graphics:1; /* Private mode 8452 */
+
/* Application configurable */
unsigned palette_size; /* Number of colors in palette */
unsigned max_width; /* Maximum image width, in pixels */