-
-
Notifications
You must be signed in to change notification settings - Fork 833
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
Incorrect cursor position after drawing image (iTerm inline image protocol) #317
Comments
I've had a FIXME in here for a while to check the positioning, but never got around to it. The onefetch folks have an app that does care about this, so it's time to resolve it! This commit adjusts the cursor position for the iterm case (not the sixel case), and results in both: running in xterm: ``` onefetch --image ~/Downloads/squirrel.png ``` running in wezterm: ``` TERM_PROGRAM=iTerm.app onefetch --image ~/Downloads/squirrel.png --image-backend=iterm ``` ``` onefetch --image ~/Downloads/squirrel.png --image-backend=sixel ``` showing consistent positioning. refs: #317 refs: o2sh/onefetch#305
Thanks for reporting this! I've pushed a fix that seems to make the onefetch sixel and iterm2 backend behavior consistent with each other within wezterm, and consistently with sixel in xterm. That'll be available in the "nightly" downloads within about an hour. |
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. |
Describe the bug
While adding support for iTerm inline image protocol to onefetch, we stumbled upon an inconsistent behavior between iTerm2 and WezTerm.
iTerm2:
WezTerm:
The cursor position after drawing the image is at the bottom left hand corner (WezTerm) instead of near the lower right corner (iTerm2).
Indeed - after drawing the image -, if we do this
instead of that
We get the correct output:
However, this obviously breaks the output on iTerm2...
Environment (please complete the following information):
Expected behavior
Consistent behavior with iTerm2 which is the de-facto standard.
The text was updated successfully, but these errors were encountered: