-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
nodejs: resize doesn't fire on Windows Terminal #3238
Comments
So! This is a fun one. Node has decided to ignore the built-in console "resize" events that are automatically generated for anybody who asks, and instead listen to our accessibility subsystem to figure out when the console window has changed size. Since they took a hard dependency on a system that we never offered with an application compatibility guarantee, their resize detector doesn't work in WT. This is related to #281. I'm digging up our PM contact with nodejs to make sure we drive this somewhere. |
/cc @yodurr |
For the reference : https://nodejs.org/api/tty.html#tty_event_resize |
Even more pertinent information on #410 |
It looks like the documentation was updated at some point, but there's a note in this version that explains what's going wrong. If you switch your tty into raw mode and resume it, you'll get resize events. |
Environment
cmd-resize-bug.zip
Steps to reproduce
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: