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

background colors extend to end of line when window is resized #11936

Closed
loganfred opened this issue Dec 13, 2021 · 2 comments
Closed

background colors extend to end of line when window is resized #11936

loganfred opened this issue Dec 13, 2021 · 2 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@loganfred
Copy link

If alternate background colors are used at the end of the printed line, resizing the window will cause the colors to propagate to the full extent of the window. This happens even when the background color is explicitly reset with whitespace characters that use the default color.

The expected behavior is that the color will continue to be confined to the correct string when the window is resized. This works as expected when the color change is in the middle of the line.

I have observed this issue in C# console applications and Powershell 7.2.0 (pictured). Windows Terminal Version: 1.11.2921.0.

image

pictured code:

Write-Host "Resizing this window does not " -NoNewLine ;`
Write-Host " FAIL " -ForegroundColor White -BackgroundColor Red -NoNewLine ; `
Write-Host "`t"
@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 Dec 13, 2021
@DHowett
Copy link
Member

DHowett commented Dec 13, 2021

Thanks for the report! This is a /dupe of #32, one of our oldest issues.

@ghost
Copy link

ghost commented Dec 13, 2021

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 Dec 13, 2021
@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 Dec 13, 2021
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