mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-18 05:34:02 -04:00
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
This commit is contained in:
parent
9666d1d0b7
commit
03c675c6e2
5 changed files with 37 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue