Skip to content

Add support for in-band window resize events - #19596

Closed
64-bitman wants to merge 1 commit into
vim:masterfrom
64-bitman:inband_resize
Closed

64-bitman wants to merge 1 commit into
vim:masterfrom
64-bitman:inband_resize

Conversation

@64-bitman

Copy link
Copy Markdown
Member

Alternative to SIGWINCH on Unix: https://gist.github.com/rockorager/e695fb2924d36b2bcf1fff4a3704bd83. It is trivial to implement, and a good amount of terminals support it.

@64-bitman

Copy link
Copy Markdown
Member Author

Looking at it now, I don't think +termresponse is needed for synchronized output or this PR, as both do not use termcap. I originally added it because \033[2026;Ps$y would appear on the screen when running Vim in MSYS2. I will create another PR for this if this is the case.

@chrisbra

chrisbra commented Mar 9, 2026

Copy link
Copy Markdown
Member

Thanks. Does any terminal already support this?

@64-bitman

Copy link
Copy Markdown
Member Author

Thanks. Does any terminal already support this?

ghostty
iTerm2
kitty
foot

@chrisbra

chrisbra commented Mar 9, 2026

Copy link
Copy Markdown
Member

Thanks. So similar to the synchronized output setting, shouldn't we make those terminal settings configurable to allow users to opt-out of this feature just in case? E.g. like we need some t_XX key codes?

@64-bitman

Copy link
Copy Markdown
Member Author

Thanks. So similar to the synchronized output setting, shouldn't we make those terminal settings configurable to allow users to opt-out of this feature just in case? E.g. like we need some t_XX key codes?

Well Neovim supports this, and they don't have any setting to configure this IIRC. However I suppose we can add a t_ option to let the user disable it (set to an empty string)

@64-bitman
64-bitman force-pushed the inband_resize branch 5 times, most recently from aef46d0 to a801b6b Compare March 11, 2026 03:36
@64-bitman

Copy link
Copy Markdown
Member Author

I think this is ready

@64-bitman
64-bitman force-pushed the inband_resize branch 4 times, most recently from fa3769e to 9091462 Compare March 11, 2026 11:47
@chrisbra

Copy link
Copy Markdown
Member

Thanks

@chrisbra chrisbra closed this in c970b47 Mar 11, 2026
chrisbra pushed a commit that referenced this pull request Mar 13, 2026
Problem:  terminal DEC mode handling is overly complex (after v9.2.0139)
Solution: Refactor DEC mode handling (Foxe Chen).

related: #19596
related: #19541
closes:  #19641

Signed-off-by: Foxe Chen <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
@skywind3000

Copy link
Copy Markdown

#20156

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.

3 participants