Powershell's progress bar corrupts the screen buffer #6567

Closed
opened 2026-01-31 00:41:50 +00:00 by claunia · 2 comments
Owner

Originally created by @9Rune5 on GitHub (Feb 21, 2020).

Environment

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18363.0 Microsoft Windows NT 10.0.18363.0

PSVersion                      7.0.0-rc.2

Steps to reproduce

  1. Start a powershell session
  2. Fill screen with content dir $env:SystemRoot
  3. Perform operation that temporarily displays the progress bar Invoke-WebRequest https://raw.github.com/trapd00r/LS_COLORS/master/LS_COLORS -OutFile ~\LS_COLORS
  4. Make the window wider

Expected behavior

The display should return to normal and resizing the window should not disturb that.

Actual behavior

Widening the window an inch skews the content that was temporarily covered by the progress bar.
image

This happens with both conhost and windows terminal.

The same issue is also discussed here: https://github.com/PowerShell/PowerShell/issues/11905

Originally created by @9Rune5 on GitHub (Feb 21, 2020). # Environment ``` Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0 PSVersion 7.0.0-rc.2 ``` # Steps to reproduce 1. Start a powershell session 2. Fill screen with content `dir $env:SystemRoot` 3. Perform operation that temporarily displays the progress bar `Invoke-WebRequest https://raw.github.com/trapd00r/LS_COLORS/master/LS_COLORS -OutFile ~\LS_COLORS` 1. Make the window wider # Expected behavior The display should return to normal and resizing the window should not disturb that. # Actual behavior Widening the window an inch skews the content that was temporarily covered by the progress bar. ![image](https://user-images.githubusercontent.com/9988080/75015891-038cca80-548a-11ea-8f47-df51f0f617e6.png) This happens with both conhost and windows terminal. The same issue is also discussed here: https://github.com/PowerShell/PowerShell/issues/11905
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 00:41:51 +00:00
Author
Owner

@9Rune5 commented on GitHub (Feb 21, 2020):

The progress bar also messes with the colors underneath. "explorer.exe" should share the same color (orange) as the executables further down in the list. Instead it has turned yellow.

@9Rune5 commented on GitHub (Feb 21, 2020): The progress bar also messes with the colors underneath. "explorer.exe" should share the same color (orange) as the executables further down in the list. Instead it has turned yellow.
Author
Owner

@9Rune5 commented on GitHub (Feb 21, 2020):

Will start troubleshooting this over at PowerShell/PowerShell.

@9Rune5 commented on GitHub (Feb 21, 2020): Will start troubleshooting this over at PowerShell/PowerShell.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6567