Terminal: CLS in CMD shell doesn't clear scrollback

Created on 7 Aug 2019  路  3Comments  路  Source: microsoft/terminal

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.

Area-Output Issue-Bug Needs-Triage Product-Terminal Resolution-Duplicate

Most helpful comment

This also happens with PowerShell.

All 3 comments

This also happens with PowerShell.

I believe this is a duplicate of #1305.

Looks like! Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghvanderweg picture ghvanderweg  路  3Comments

carlos-zamora picture carlos-zamora  路  3Comments

warpdesign picture warpdesign  路  3Comments

zadjii-msft picture zadjii-msft  路  3Comments

alabuzhev picture alabuzhev  路  3Comments