|
|
|
|
|
by abcdef123xyz
2397 days ago
|
|
An achievable option in the short term would be to do the following: 1) Fix the DCS issue as I suggested. 2) Check if the terminal supports SIXEL (there is a code in DA or DA2, or perhaps we need a flag). 3) If the terminal supports SIXEL, pass it through, if it doesn't then ignore it. This would allow SIXEL to display on output although it would be corrupted as soon as tmux redraws. It would be a start however and could be added to tmux immediately. |
|
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.