https://gist.githubusercontent.com/nicm/9acc00b67035b5f2b8a8...
Which does the basics of this:
- Bump the sequence timeout to 5 seconds instead of 100 ms for more time for SIXEL images but still not let the terminal hang forever. This could be made more sophisticated perhaps.
- Check the code in DA for SIXEL support and also check a terminfo(5) extension flag Sxl.
- Recognise SIXEL sequences and pass them through (like the 'tmux' passthrough escape sequence) and copy them to the attached outside terminals if they support SIXEL (DA or Sxl set).
I didn't try to disable the terminal-can't-keep-up code during DCS, that is more complicated because some panes may be inside DCS and some may not. I only have a small test SIXEL image so I would need a larger one that demonstrates the problem to look at that.
I probably won't move this any further forward unless someone tests this, but it may be a good start for further work on SIXEL.