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

imgcat does not work in tmux #55

Open
spinningarrow opened this issue Aug 1, 2018 · 4 comments
Open

imgcat does not work in tmux #55

spinningarrow opened this issue Aug 1, 2018 · 4 comments

Comments

@spinningarrow
Copy link

When I use imgcat in a local tmux session, I see the base64 text of the image. In a regular (non-tmux) tab, imgcat works fine. Is it supposed to work in tmux as well?

@gnachman
Copy link
Owner

gnachman commented Aug 4, 2018

imgcat works in tmux integration mode (kind of—it won't show your images after you reattach). It sounds like your $TERM might not be set to screen or screen-256color, which causes it to not detect that it's in tmux and print a code tmux doesn't handle properly.

@spinningarrow
Copy link
Author

When I do echo $TERM inside tmux, it prints screen. Is that correct?

I should mention that I'm running tmux normally inside a regular iTerm pane - not making use of iTerm's tmux integration feature. Is that supported?

@gnachman
Copy link
Owner

gnachman commented Aug 9, 2018

I just tested in non-integration tmux and reproduced your issue. It is pretty much hopeless to get imgcat working in regular tmux, unfortunately. It works in tmux integration mode except images are lost when you reattach.

@mellery451
Copy link

I have a double-whammy use case of mosh and tmux (to remote servers)...and unfortunately they BOTH break imgcat (I've tried each independently). too bad...I really like this feature, but I guess I can only use it plain-vanilla SSH connections.

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

3 participants