aboutsummaryrefslogtreecommitdiff
path: root/sixel.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-06-23 19:07:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-06-23 19:07:12 +0000
commitbc82d4ee28b0ca0e86b096069b7a61cbb082a93b (patch)
tree8c8265464ad4be8f5dc6a383a3f5d3f70b5c7b43 /sixel.h
parentterm: reset: set title to the user configured title, not "foot" (diff)
sixel: wip: split up image being overwritten, rather than erasing it
Instead of completely erasing a sixel image when it is being "overwritten" (text is printed somewhere within the image, or another sixel image is emitted within the first image), split it up into up to four pieces: 'above', 'below', 'to-the-left' and 'to-the-right'. This is currently very un-optimized, but seems to produce correct results.
Diffstat (limited to 'sixel.h')
-rw-r--r--sixel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sixel.h b/sixel.h
index a10f14f2..2f3b0d86 100644
--- a/sixel.h
+++ b/sixel.h
@@ -15,6 +15,7 @@ void sixel_destroy(struct sixel *sixel);
void sixel_delete_in_range(struct terminal *term, int start, int end);
void sixel_delete_at_row(struct terminal *term, int _row);
void sixel_delete_at_cursor(struct terminal *term);
+void sixel_split_at_cursor(struct terminal *term);
void sixel_colors_report_current(struct terminal *term);
void sixel_colors_reset(struct terminal *term);