mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-27 01:40:16 -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
|
|
@ -2381,7 +2381,8 @@ term_print(struct terminal *term, wchar_t wc, int width)
|
|||
print_linewrap(term);
|
||||
print_insert(term, width);
|
||||
|
||||
sixel_delete_at_cursor(term);
|
||||
//sixel_delete_at_cursor(term);
|
||||
sixel_split_at_cursor(term);
|
||||
|
||||
/* *Must* get current cell *after* linewrap+insert */
|
||||
struct row *row = term->grid->cur_row;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue