-
-
Notifications
You must be signed in to change notification settings - Fork 830
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
Inconsistent behavior of the Inline Images Protocol #4164
Comments
See: This isn't a wezterm issue, it's a ConPTY issue. See https://wezfurlong.org/wezterm/what-is-a-terminal.html#windows-and-conpty for more information on ConPTY and it's relationship with terminal applications. |
Thanks for the reply, but it doesn't seem to make sense to me. In my first issue, the cursor must be shown before drawing the image and then hidden, is this a Windows-specific behavior or is it an exception to the expected behavior due to ConPty? I'm not sure if this is due to ConPty or not, because after two days of debugging, I found a workaround that allows the image to be displayed properly, but doesn't break the tui, which is that it must perform the clear immediately before the image is rendered, and can't put clearing, and rendering in two separate steps. This may sound trick, but it works, and not sure there's a better way at this point. |
Please read the comment I linked to carefully; it in turn links to a number of other open conpty issues that are relevant: |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
What Operating System(s) are you seeing this problem on?
Windows
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
wezterm 20230712-072601-f4abf8fd
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
Hi, I'm working on a terminal file manager, which is going to add support for the Windows platform, and I've noticed some issues when adapting the image preview for the Windows version of WezTerm:
Before I draw the image I need to move the cursor position to the top left corner of the image start, but on Windows the cursor needs to be shown for this to work:
Other platforms (I only tested macOS) don't need it:
Another issue is that I need to clear the old image before drawing the new one, and clearing the image and drawing the new image can break the TUI occasionally.
222.mp4
This issue is not present on macOS, only on Windows. When I comment
image_hide
,image_show
any of them the issue disappears, and it only exists when both are present.To Reproduce
Below is the ANSI escape code to send for the second issue:
Configuration
no config
Expected Behavior
No response
Logs
No response
Anything else?
I've tried using the nightly version, but I can't get it to run on my Windows 11.
The text was updated successfully, but these errors were encountered: