I am the author of the Jexer text windowing system library: https://jexer.sourceforge.io . I was testing it with mlterm (version 3.8.7, without the patch), and opening an image in Jexer causes mlterm to crash with a segfault.
Jexer is AFAIK very unusual in that emits a mixture of text and sixel, and could easily put dozens of small sixel images on screen to piece together larger images. It is also supposed to emit sixel images that will fit exactly within the borders of the text cells, which it computes by querying the window size in pixels (CSI 14 t) (if xterm ignores the request, Jexer assumes the window is 640x400). Each sixel image contains the palette+pixels.
Thanks.
This is a bug of mlterm.
The attached patch will fix this problem.
Regards,
I just tried with 3.8.8, and can confirm that it is fixed.