-
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
WriteConsoleOutput() with 0s produces undefined results instead of clearing like on previous versions #14441
Comments
When you say "On Windows 11", do you just mean when using Windows Terminal, which is now the default terminal for Windows 11? The reason I ask is because this sounds like #6265 (also #4363), which has always been a problem on Windows Terminal. However, if you switch the default terminal back to the old console, your test case should still work, even on Windows 11. |
Ah, I found just now how to change the default terminal. OMG, so much better, all of my old apps are working again =). Yes, this appears to be only an issue with Windows Terminal, and this looks similar to those linked issues (although the fact that it behaves different depending on timing might mean this is something different - not just the wrong characters making it through, but something going wrong while buffering somewhere). |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Windows Terminal version
1.15.2875.0
Windows build number
10.0.22621.819
Other Software
No response
Steps to reproduce
Run a legacy console app that uses WriteConsoleOutput to clear portions of the screen, instead of clearing, results are undefined / timing-dependent and never correct.
Example program:
Expected Behavior
No response
Actual Behavior
Either nothing is written to the screen, or the characters to be overwritten are instead removed from the terminal buffer and everything else shifted over.
The text was updated successfully, but these errors were encountered: