Clear-Host does not clear the previous content (Powershell) #4356

Open
opened 2026-01-30 23:45:00 +00:00 by claunia · 0 comments
Owner

Originally created by @cdmihai on GitHub (Oct 9, 2019).

Originally assigned to: @zadjii-msft on GitHub.

Environment

Windows build number: Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable): 0.5.2762.0

Steps to reproduce

# open Terminal with powershell
# open git repo with more than 100 commits
git log -100 # to fill in the entire screen with text
Clear-Host
# scroll up

Expected behavior

Cannot scroll up, Clear-Host cleared the terminal, all previous output is gone.

Actual behavior

Scrolling up shows previous output. This repros with both Powershel 6.2.3 and 5.2.1.
This does not happen with the powershell terminal, which correctly removes all previous output.

Originally created by @cdmihai on GitHub (Oct 9, 2019). Originally assigned to: @zadjii-msft on GitHub. # Environment ```none Windows build number: Microsoft Windows NT 10.0.18362.0 Windows Terminal version (if applicable): 0.5.2762.0 ``` # Steps to reproduce ``` # open Terminal with powershell # open git repo with more than 100 commits git log -100 # to fill in the entire screen with text Clear-Host # scroll up ``` # Expected behavior Cannot scroll up, `Clear-Host` cleared the terminal, all previous output is gone. # Actual behavior Scrolling up shows previous output. This repros with both Powershel 6.2.3 and 5.2.1. This does not happen with the powershell terminal, which correctly removes all previous output.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4356