-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Prevent ConPTY from de-snapping the terminal #13164
Conversation
// window. There seem to be many issues with this so far, and the quickest | ||
// route to mitigate them seems to be limiting the interaction here to | ||
// allowing ConPTY to minimize the terminal only. This will still allow | ||
// bodgy scripts to hide the Terminal via GetConsoleWindow(), but should |
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.
Can you use ShowWindow to minimize it, then restore it, and then use ShowWindow again in the same session? Or does it get into a torn state?
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.
Sure does! This is only preventing ShowWindow(GetConsoleWindow(), SW_SHOW)
from going out to the terminal, the rest of the state still flows in to the pty window
This is a big hammer to put out this fire. We're keeping the hiding around for now, cause we think that's likely the one that the internal tests use that we really care about here. If we need to bring this back, we can. * [x] Closes #13158 * [x] Closes #13162 * [x] Validated these both manually * [x] `[Native]::ShowWindow([Native]::GetConsoleWindow(), 6)` still works (cherry picked from commit 11b810e) Service-Card-Id: 82371517 Service-Version: 1.14
🎉 Handy links: |
This is a big hammer to put out this fire. We're keeping the hiding around for now, cause we think that's likely the one that the internal tests use that we really care about here. If we need to bring this back, we can.
[Native]::ShowWindow([Native]::GetConsoleWindow(), 6)
still works