| I took a look at this but at the moment you are just commenting out the bits that stop tmux sending SIXEL to the outside terminal, so there is still a lot of work to do for proper SIXEL support: - You don't check if the terminal outside even supports SIXEL. A major tmux design feature is that it avoids sending output to a terminal if it doesn't know it will understand it. - What if there are two clients attached, one in a terminal with SIXEL, one without? Does it need to draw an ASCII placeholder? - The SIXEL image needs to be saved so it can be redrawn if needed (current window is changed, detach/attach, scrolling into history etc). - If the SIXEL image is scrolled partly off the terminal or the window pans so it is partly off the terminal, the image needs to be cropped to the right size and drawn at the right place. - The problems with the timer and large DCS, just turning this off is bringing back the problems with fast output it is intended to solve. A better solution would be to only disable these while a DCS sequence is in progress. If you get it working with these addressed I would be open to merging it into tmux itself. |
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.