clear screen command cannot really work in cmd or powershell #6298

Open
opened 2026-01-31 00:35:07 +00:00 by claunia · 0 comments
Owner

Originally created by @SigmaStar on GitHub (Feb 5, 2020).

Environment

Windows build number: 10.0.18363.628
Windows Terminal version (if applicable): 0.8.10261.0

Any other software?

Steps to reproduce

run command like ls in powershell session or dir in cmd session and then try to use cls to clear the screen, you will find the history while scrolling up.

Expected behavior

no history anymore after cls was executed.

Actual behavior

history output is not cleared.

Originally created by @SigmaStar on GitHub (Feb 5, 2020). # Environment ``` Windows build number: 10.0.18363.628 Windows Terminal version (if applicable): 0.8.10261.0 Any other software? ``` # Steps to reproduce run command like ls in powershell session or dir in cmd session and then try to use cls to clear the screen, you will find the history while scrolling up. # Expected behavior no history anymore after cls was executed. # Actual behavior history output is not cleared.
claunia added the Resolution-Duplicate label 2026-01-31 00:35:07 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6298