-
Notifications
You must be signed in to change notification settings - Fork 503
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 command scrolls instead of clearing history #551
Comments
This issue on the VS Code repo discusses the limitation in the integrated terminal: xtermjs/xterm.js#106 |
Ok, I have come up with a way to fix this. VS Code provides a command called |
Is the fix implemented in the latest Insiders update? I'm still having this issue. Currently working on a scraping project and this makes me rotate back to ISE :'( |
Every update of the Insiders version i hope to see this fixed, no joy so far :'-( |
I would love to see this fix implemented in the next release as well! With this fixed and the #region support coming in the next VSCode release, I can finally switch to VSCode full time for PowerShell! Thank you for the hard work! |
This is a bug in VS Code unfortunately. To verify, start a new VS Code Integrated Terminal with powershell.exe, run Get-Process and then Clear-Host, observe that the screen clearing behavior is exactly the same as in the PowerShell extension's Integrated Console. I'll have to discuss this with the VS Code team to get it resolved since there's nothing that can be done from within the PowerShell extension to fix it. |
Ah, I thought I read earlier that you had a fix for this. No worries. Hopefully there is an open issue for this in their repo. Thank you for all your hard work! |
So i suppose this means that there is no ETA on this issue? Is there any other issue i can track ? |
Hi, is there any way to track if this is being handled? This is the last deal-breaking bug for me. |
@daviwil Hi David, i'm sorry to keep going on about this. But i just had a hard time again with big chunks of data because of the host not clearing. Is there any ETA on this? Is this being look at at this moment? |
@Cookiecrumbles please go upvote on xtermjs/xterm.js#106. This is an upstream issue that has to be fixed in VS Code's terminal. As a workaround, there is a key shortcut |
Cant it be implemented as a Ctrl+k type of work-around until its fixed? |
This is an issue with VSCode as it is the same with the vanilla PowerShell terminal as well as CMD. Please vote up this issue - microsoft/vscode#30638 |
System Details
$PSVersionTable
:Issue Description
When executing the
clear
command, the action is to scroll to the top of the terminal rather than clearing the previous output.After the next command executed, it can be difficult to find the beginning of the output as
Ctrl+Home
goes to the beginning of the session, not the lastclear
.The text was updated successfully, but these errors were encountered: