Skip to content

requesting screen size in pixels (esc[14t) doesn't work immediately after node script start on mac when stdin is in raw mode and focus events are enabled #5639

Closed Answered by mitchellh
monsterkodi asked this question in Issue Triage
Discussion options

You must be logged in to vote

This is a known issue and is currently considered a "wontfix." I'm not sure the best way forward, but the reason this happens is because Ghostty initializes the pty concurrently to the GUI views, so initially we don't know our final size (an immediate resize happens usually).

The easiest solution would be to not initialize the pty until the view is fully laid out, but this would slow down our startup times and I'm not sure how I feel about that.

For now, registering for resize notifications and then requesting the size is the best option.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@00-kat
Comment options

00-kat Feb 8, 2025
Collaborator

@monsterkodi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mitchellh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os/macos vt Control sequence related
3 participants