-
Notifications
You must be signed in to change notification settings - Fork 5.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
fix(ext/node): windows cancel stdin read in line mode #23969
Conversation
6dc4ead
to
5c15e0c
Compare
5c15e0c
to
401d51c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a Windows machine to test the change. I'll let David review the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks good to me. Nice that there's a test. @dsherret can you try it out on your machine and see if it fixes the problem at hand?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Probably the most terrible windows hack of all time. I remember that in libuv we had to replace an already-terrible hack (calling Pretty appalling that more than a decade later there is still no solution on the horizon: microsoft/terminal#12143.
Final note: Best you can do is try it in practice and see that it works OK most of the time. It probably always will have edge cases where text ends up garbled. Only Microsoft could fix this (they won't though).
|
Node v Deno comparision for some packages:
recording.mp4
solid.mp4
vite.mp4Seems to work most of the time :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This patch fixes stdin read hanging on user input when switching tty mode on Windows
Fixes #21111
On Windows, when switching from line to raw mode: