-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: enable sixel support #26057
tmux: enable sixel support #26057
Conversation
Notifying maintainers: |
What would be the result with terminals that do not support Sixel such as Terminal.app or Alacritty? Should it be applied as a variant instead? edit: And if the first point has no issues, should this be enabled as a default variant? |
@casr SIXEL is a protocol defines how to convert image file into escape sequences. ImageMagick is a tool who supports this process. For terminals who understand this protocol, it will render the generated escape sequence as picture and display it in the terminal. For those who don't, in my test, they just ignore it and do nothing.
I don't think so. It works only when user try to preview an image in the terminal explicitly, using some tools like ImageMagick. Tmux doesn't render the image directly, it works as a middleman in the preview process. The sixel support of tmux just make sure the escape sequence is passed out to terminals, untouched, but not intercept the sequence and handle it by tmux itself. |
I agree, this is the same as other escape sequences being sent by tmux natively. If the terminal does not understand them, it depends on the terminal to handle this situation. TL;DR |
I'll argue for a variant because:
For those reasons, I think having the ability to toggle this as a variant would be welcomed by some. I do not see a problem making this a default variant though. |
f421292
to
3385576
Compare
3385576
to
7524272
Compare
@tessus so is this good to merge? |
@reneeotten I don't have merge access. someone from the macports team has to merge this |
I understand that and I was going through PRs to merge things. But I just wanted to make sure you approve of these changes as that wasn't completely clear to me. |
Oh, I see. Yes, LGTM and adding a variant makes sense. Thx. |
Description
tmux added SIXEL support since 3.4, enable this feature during build.
https://github.com/tmux/tmux/blob/2df15ad08c9e4cf286cdb38cb645fc9066c3098d/CHANGES#L102
test method, build and open shell in tmux, install ImageMagick
You should get a preview of the picture within tmux, if your terminal also support SIXEL images. (terminals including iTerm2, wezterm, etc)
Type(s)
Tested on
macOS 12.7 21G816 arm64
Command Line Tools 14.2.0.0.1.1668646533
Verification
Have you
port lint --nitpick
?sudo port test
?sudo port -vst install
? (without -t trace mode, which is broken)