Implement generalised image support

Support Kitty and SIXEL input and output with grid-resident image layers, history and copy-mode integration, text fallback rendering, and damage-rectangle redraws.

Consolidate the image work through 250f96b4b onto the redraw-damage-rectangles-new base, excluding the superseded redraw implementation and its historical merges. The original history is preserved in backup/4902-image-support-before-master-rebase-20261003.
This commit is contained in:
Michael Grant
2026-10-03 22:46:01 +01:00
parent 8f25579c5a
commit c121116b3c
45 changed files with 7587 additions and 677 deletions

4
utf8.c
View File

@@ -374,6 +374,10 @@ utf8_add_to_width_cache(const char *s)
wc_end = wc_start;
}
/*
* wc_end may be WCHAR_MAX, so incrementing wc past it would
* overflow (wc_start <= wc_end is already guaranteed above).
*/
wc = wc_start;
for (;;) {
utf8_insert_width_cache(wc, width);