-
Notifications
You must be signed in to change notification settings - Fork 497
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
Clear-Host does not clear terminal window #1955
Comments
Thanks for reporting this...This is not an isolated issue to the PowerShell Integrated Console issue...if you open up a regular "PowerShell" terminal in VSCode - note that this is the PowerShell console. Execute 1..100 and then cls. Note that you can still scroll back through the terminal history. This is a function of the terminal feature in VSCode. You can clear that terminal history using Ctrl+k. See microsoft/vscode#50225 for more details. |
I have some PR's out to address this since it's highly requested - #2316 |
[System.Console]::Clear() should work. Not ideal, but should still do the needful. |
Thank you for your comment, but please note that this issue has been closed for over a week. For better visibility, consider opening a new issue with a link to this instead. |
Issue Description
Clear-Host does not clear the powershell terminal window, but appears to do so. If you scroll up, there's a bunch of text that shouldn't be there.
Run the following code a couple of times and scroll around to see:
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
Environment Information
Windows 10 Pro (18362.86)
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: