Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ribeach opened this issue Mar 23, 2021 · 2 comments
Closed

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

ribeach opened this issue Mar 23, 2021 · 2 comments
Labels
Needs-Tag-Fix Doesn't match tag requirements Resolution-External For issues that are outside this codebase

Comments

@ribeach
Copy link

ribeach commented 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

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Mar 23, 2021
@DHowett
Copy link
Member

DHowett commented Mar 23, 2021

I believe this is the same as /dup PowerShell/PSReadLine#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.

@ghost
Copy link

ghost commented 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 ghost closed this as completed Mar 23, 2021
@ghost ghost added Resolution-External For issues that are outside this codebase and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Mar 23, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Tag-Fix Doesn't match tag requirements Resolution-External For issues that are outside this codebase
Projects
None yet
Development

No branches or pull requests

2 participants