Skip to content
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

CLS in CMD shell doesn't clear scrollback #2328

Closed
nurbles opened this issue Aug 7, 2019 · 3 comments
Closed

CLS in CMD shell doesn't clear scrollback #2328

nurbles opened this issue Aug 7, 2019 · 3 comments
Labels
Area-Output Related to output processing (inserting text into buffer, retrieving buffer text, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@nurbles
Copy link

nurbles commented Aug 7, 2019

In a stand-alone CMD window, the CLS command clears not only the text currently visible in the window, but all of the history in the scrollback buffer. In a Windows Terminal CMD tab, clear is clearing only the currently visible text, leaving the scrollback content untouched.

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.3.2171.0

Any other software? no

Steps to reproduce

  1. Open a command (CMD) tab.
  2. Execute enough commands to put data in the scrollback buffer.
  3. Execute cls
  4. Observe results

Expected behavior

I expect the screen and scrollback buffer to be completely cleared.

Actual behavior

Only the screen is cleared.

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Aug 7, 2019
@carlos-zamora carlos-zamora added Area-Output Related to output processing (inserting text into buffer, retrieving buffer text, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal. and removed Needs-Tag-Fix Doesn't match tag requirements labels Aug 7, 2019
@richardcox13
Copy link

This also happens with PowerShell.

@j4james
Copy link
Collaborator

j4james commented Aug 7, 2019

I believe this is a duplicate of #1305.

@DHowett-MSFT
Copy link
Contributor

Looks like! Thanks.

@DHowett-MSFT DHowett-MSFT added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Output Related to output processing (inserting text into buffer, retrieving buffer text, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

5 participants