Skip to content

Conversation

@willmcgugan
Copy link
Member

@willmcgugan willmcgugan commented Nov 7, 2024

Fixes #5205

Having implemented this, it doesn't appear to make any noticeable difference.

I suspect that the for us there is no real benefit in the resize events being in-band. Previously we were handling signals and then posting events, which serialized everything anyway.

The Resize event does report the pixel size of the terminal with this protocol, which may be useful in the future when we add image support.

This also disable line-wrapping on terminals that support it. Currently only Ghostty as far as I can see. The benefit is that resizing the terminal doesn't cause the last line to wrap and scroll up. Further reducing resize jankiness.

Screen.Recording.2024-11-07.at.19.36.28.mov

@willmcgugan willmcgugan marked this pull request as draft November 7, 2024 18:09
@willmcgugan willmcgugan marked this pull request as ready for review November 11, 2024 17:09
@willmcgugan willmcgugan requested review from darrenburns and removed request for darrenburns November 11, 2024 17:09
@willmcgugan willmcgugan merged commit 436123a into main Nov 12, 2024
20 checks passed
@willmcgugan willmcgugan deleted the in-band-resize branch November 12, 2024 11:57
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

Successfully merging this pull request may close these issues.

Window resizing

2 participants