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

Powershell 6 resizing issues #4100

Closed
sbenalohm opened this issue Jan 2, 2020 · 2 comments
Closed

Powershell 6 resizing issues #4100

sbenalohm opened this issue Jan 2, 2020 · 2 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@sbenalohm
Copy link

sbenalohm commented Jan 2, 2020

Environment

Windows build number: Microsoft Windows 10.0.18363
Windows Terminal version (if applicable): 0.7.3451.0

Any other software?
PowerShell Core 6.2.3

Steps to reproduce

Run PowerShell Core 6.2.3 in Windows Terminal, resize the window in any manner.

Expected behavior

The terminal prompt and existing printed text will be resized (i.e. line wrapping) and realigned to put the active prompt at the bottom of the window or at the lowest line if there aren't enough history lines to fill up the window.

All profiles other than PS6 (WSL, CMD, original PowerShell, Azure Cloud Terminal) are working fine in this regard, as well as the default PS6 terminal (not running it in Windows Terminal).

Actual behavior

The text stays in the same place relative to the border dimensions that the terminal/tab was instantiated with.

When the window is enlarged, all visible text remains inside the smaller original borders. See that in the 2nd image the output of the top command is cut off even though there is empty space below the last prompt line. Prompt lines will never fill this empty space.
InitialSizeFull
FirstResizeCutsOutput

If a new tab is opened once the window is larger, these new dimensions are accurately rendered with the new terminal tab. See how there is now no empty space below the last prompt.
FirstResizeNewTabMoreOutputNoScrollbar

When the window is made smaller, the printed text remains in the larger original borders making the current line (the cursor/new text) not visible as it remains outside the new smaller bounds. In the first image below I've typed a bogus command into the prompt, but it is not visible as it is a few lines below the bottom of the resized window. After hitting enter a few times, the 2nd image shows that the command ran, but was not visible in the terminal until enough new lines pushed it up into the view of the resized window.
SecondResizeUndersizePromptNotVisible
SecondResizeUndersizePromptNotVisibleStartOutput

@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 Jan 2, 2020
@DHowett-MSFT
Copy link
Contributor

Thanks for the detailed report! This seems like a /dupe of #1465

@ghost
Copy link

ghost commented Jan 2, 2020

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed Jan 2, 2020
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed 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 Jan 2, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants