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

sixel doesn't work on Windows 10 #1236

Open
xiangpeng2008 opened this issue Oct 17, 2021 · 9 comments
Open

sixel doesn't work on Windows 10 #1236

xiangpeng2008 opened this issue Oct 17, 2021 · 9 comments
Labels
bug Something isn't working conpty Windows Issue applies to Microsoft Windows

Comments

@xiangpeng2008
Copy link

xiangpeng2008 commented Oct 17, 2021

What Operating System(s) are you seeing this problem on?

Windows

WezTerm version

wezterm 20210814-124438-54e29167

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

No, and I'll explain why below

Describe the bug

when I open wezterm on windows10, ssh to remote linux, and img2sixel path/img.png, nothing prints

To Reproduce

open wezterm on windows10
ssh to linux server
img2sixel path/img.png

image

Configuration

no config

Expected Behavior

Sixel graphics support (experimental: starting in 20200620-160318-e00b076c)

Logs

 2021-10-17T12:07:17.919Z INFO  wezterm_mux_server_impl::local > setting up C:\Users\zhangxia\.local/share/wezterm\gui-sock-6796
 2021-10-17T12:07:18.484Z WARN  wezterm_term::terminalstate    > unhandled DecPrivateMode SetDecPrivateMode(Unspecified(9001))
 2021-10-17T12:07:18.960Z INFO  wezterm_gui::termwindow        > OpenGL initialized! ANGLE (NVIDIA Quadro P620 Direct3D11 vs_5_0 ps_5_0) OpenGL ES 3.0.0 (ANGLE 2.1.1 git hash: 07ea804e6201) is_context_loss_possible=true wezterm version: 20210814-124438-54e29167
 2021-10-17T12:07:30.103Z WARN  wezterm_term::terminalstate    > unhandled DecPrivateMode SetDecPrivateMode(Unspecified(1034))

Anything else?

No response

@xiangpeng2008 xiangpeng2008 added the bug Something isn't working label Oct 17, 2021
@wez
Copy link
Owner

wez commented Oct 17, 2021

The Windows ConPTY layer might be interfering with this. If you use wezterm ssh to connect directly to the remote host, I would expect this to work. Could you try that?

@wez wez added Windows Issue applies to Microsoft Windows waiting-on-op Waiting for more information from the original poster labels Oct 17, 2021
@xiangpeng2008
Copy link
Author

I'm not with this Windows 10 right now, will let you know tmr.

@no-response no-response bot removed the waiting-on-op Waiting for more information from the original poster label Oct 17, 2021
@wez wez added the waiting-on-op Waiting for more information from the original poster label Oct 17, 2021
@xiangpeng2008
Copy link
Author

The Windows ConPTY layer might be interfering with this. If you use wezterm ssh to connect directly to the remote host, I would expect this to work. Could you try that?

Yes, wezterm ssh works.

@no-response no-response bot removed the waiting-on-op Waiting for more information from the original poster label Oct 18, 2021
@wez
Copy link
Owner

wez commented Dec 23, 2021

We're waiting on some combination of:
microsoft/terminal#1173
microsoft/terminal#448

before this will work directly on ConPTY

@ykhan21
Copy link

ykhan21 commented Jan 6, 2024

For what it's worth, mintty is a Windows terminal that supports sixel graphics.

@wez
Copy link
Owner

wez commented Jan 6, 2024

@ykhan21 wezterm does support sixel graphics. It's conpty in the middle that can mess things up

@wez
Copy link
Owner

wez commented Jan 6, 2024

The workaround that I suggest is using wezterm ssh to get directly into eg: a WSL environment or a remote linux environment

@ykhan21
Copy link

ykhan21 commented Jan 6, 2024

Is there a way to get it to work without ssh-ing into a linux / WSL environment?

For example, on Windows with mintty I can do:
magick convert image.png -polaroid 10 -thumbnail 500x image.png sixel:- > image.six.txt,
then cat the file to display the image with sixel graphics:
cat image.six.txt.

@wez
Copy link
Owner

wez commented Jan 6, 2024

No, conpty, which is intimately tied to native console program output on windows, does not support sixels.
To use sixel, you need to avoid conpty.
Learn more about conpty: https://wezfurlong.org/wezterm/what-is-a-terminal.html#windows-and-conpty

As an alternative, using the iTerm2 image protocol uses a different kind of escape sequence that can mostly squeeze through conpty.

Consider using eg: png or jpg images together with wezterm imgcat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working conpty Windows Issue applies to Microsoft Windows
Projects
None yet
Development

No branches or pull requests

3 participants