mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-25 01:40:19 -05:00
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.
This commit is contained in:
parent
bae11000cc
commit
bc82d4ee28
3 changed files with 142 additions and 2 deletions
1
sixel.h
1
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue