First shown output line in window is ommitted after next command #13146

Closed
opened 2026-01-31 03:34:58 +00:00 by claunia · 2 comments
Owner

Originally created by @ribeach on GitHub (Mar 23, 2021).

Windows Terminal version (or Windows build number)

10.0.19042.0, 1.4.3243.0

Other Software

No response

Steps to reproduce

  • Create text file with multiple lines (e.g. 01-10)
  • Resize Terminal window to not show all line (e.g. only show 02-10)
  • Output content of file (Get-Content or cat)
  • execute another command that will output multiple lines
  • Scrolling up Terminal will now omit the "02" line

Expected Behavior

PS C:\> Write-Host "only 02-09 visible in window:"
only 02-09 visible in window:
PS C:\> Get-Content test.txt
01
02 <<<< This output is missing in "actual behaviour"
03
04
05
06
07
08
09
PS C:\> Get-Content test.txt
01
02
03
04
05
06
07
08
09
PS C:\> Write-Host "Resizing Window. Now all numbers are visible in window:"
Resizing Window. Now all numbers are visible in window:
PS C:\> Get-Content test.txt
01
02
03
04
05
06
07
08
09
PS C:\> Get-Content test.txt
01
02
03
04
05
06
07
08
09

Actual Behavior

PS C:\> Write-Host "only 02-09 visible in window:"
only 02-09 visible in window:
PS C:\> Get-Content test.txt
01
03
04
05
06
07
08
09
PS C:\> Get-Content test.txt
01
02
03
04
05
06
07
08
09
PS C:\> Write-Host "Resizing Window. Now all numbers are visible in window:"
Resizing Window. Now all numbers are visible in window:
PS C:\> Get-Content test.txt
01
02
03
04
05
06
07
08
09
PS C:\> Get-Content test.txt
01
02
03
04
05
06
07
08
09

Windows Size:
image

Originally created by @ribeach on GitHub (Mar 23, 2021). ### Windows Terminal version (or Windows build number) 10.0.19042.0, 1.4.3243.0 ### Other Software _No response_ ### Steps to reproduce - Create text file with multiple lines (e.g. 01-10) - Resize Terminal window to not show all line (e.g. only show 02-10) - Output content of file (Get-Content or cat) - execute another command that will output multiple lines - Scrolling up Terminal will now omit the "02" line ### Expected Behavior ```powershell PS C:\> Write-Host "only 02-09 visible in window:" only 02-09 visible in window: PS C:\> Get-Content test.txt 01 02 <<<< This output is missing in "actual behaviour" 03 04 05 06 07 08 09 PS C:\> Get-Content test.txt 01 02 03 04 05 06 07 08 09 PS C:\> Write-Host "Resizing Window. Now all numbers are visible in window:" Resizing Window. Now all numbers are visible in window: PS C:\> Get-Content test.txt 01 02 03 04 05 06 07 08 09 PS C:\> Get-Content test.txt 01 02 03 04 05 06 07 08 09 ``` ### Actual Behavior ```powershell PS C:\> Write-Host "only 02-09 visible in window:" only 02-09 visible in window: PS C:\> Get-Content test.txt 01 03 04 05 06 07 08 09 PS C:\> Get-Content test.txt 01 02 03 04 05 06 07 08 09 PS C:\> Write-Host "Resizing Window. Now all numbers are visible in window:" Resizing Window. Now all numbers are visible in window: PS C:\> Get-Content test.txt 01 02 03 04 05 06 07 08 09 PS C:\> Get-Content test.txt 01 02 03 04 05 06 07 08 09 ``` Windows Size: ![image](https://user-images.githubusercontent.com/12139878/112169615-a4e8d180-8bf2-11eb-9dcb-2878336f4cbb.png)
claunia added the Resolution-ExternalNeeds-Tag-Fix labels 2026-01-31 03:34:58 +00:00
Author
Owner

@DHowett commented on GitHub (Mar 23, 2021):

I believe this is the same as /dup https://github.com/PowerShell/PSReadLine/issues/724

The old version of PSReadline that came with Windows PowerShell uses a "hard scroll" operation when the prompt is displayed. This "hard scroll" deletes the content that was scrolled off the screen.

@DHowett commented on GitHub (Mar 23, 2021): I believe this is the same as /dup https://github.com/PowerShell/PSReadLine/issues/724 The old version of PSReadline that came with Windows PowerShell uses a "hard scroll" operation when the prompt is displayed. This "hard scroll" deletes the content that was scrolled off the screen.
Author
Owner

@ghost commented on GitHub (Mar 23, 2021):

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@ghost commented on GitHub (Mar 23, 2021): Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13146