From 03c675c6e2d9152da363eefcb1a2c3b059aac2ba Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 16 Feb 2021 19:11:38 +0100 Subject: 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 --- terminal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'terminal.h') 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 */ -- cgit v1.3