Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmux passthrough for other terminals #125

Open
ErrorNoInternet opened this issue Dec 27, 2023 · 3 comments
Open

tmux passthrough for other terminals #125

ErrorNoInternet opened this issue Dec 27, 2023 · 3 comments

Comments

@ErrorNoInternet
Copy link

ErrorNoInternet commented Dec 27, 2023

Does timg support tmux passthrough for terminals other than Kitty? It doesn't seem to be printing anything when using it in foot + tmux

image

Top is tmux + yazi, middle is tmux + timg, and bottom is timg without tmux
Foot only supports sixel (my timg is aliased to timg -ps)

https://github.com/sxyazi/yazi seems to support it, but I had to manually enable tmux passthrough (https://github.com/sxyazi/yazi/wiki/Image-preview-within-tmux)

@hzeller
Copy link
Owner

hzeller commented Jan 26, 2024

Unfortunately, tmux does not allow pass-through of image protocols. I think tmux folks want to keep things simple and avoid strange corner-cases.

The only reason it works for Kitty is some trickery, which works only really with kitty...

If you want image protocols supported in tmux, ask the developers there (but I think others tried to ask before).

@hzeller hzeller closed this as completed Jan 26, 2024
@ErrorNoInternet
Copy link
Author

recording.mp4

I got it to work by sending a few special escape sequences that https://github.com/sxyazi/yazi also sends (specifically the code in https://github.com/sxyazi/yazi/tree/main/yazi-adaptor/src), it's just that the image height isn't properly being realized by the terminal, so it cuts off things that it wasn't supposed to cut.

@hzeller hzeller reopened this Jan 26, 2024
@hzeller
Copy link
Owner

hzeller commented Jan 26, 2024

Interesting, so there are 'workaround sequences'.
I'll re-open and will have a look when time permits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants