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

Black background isn't displayed correctly in PowerShell #9115

Closed
EmilyGraceSeville7cf opened this issue Feb 11, 2021 · 3 comments
Closed

Black background isn't displayed correctly in PowerShell #9115

EmilyGraceSeville7cf opened this issue Feb 11, 2021 · 3 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@EmilyGraceSeville7cf
Copy link

Environment

Windows build number: Win32NT 10.0.19042.0 Microsoft Windows NT 10.0.19042.0
Windows Terminal version (if applicable): 1.5.10271.0

Steps to reproduce

If you execute this code peace than you see yellow text with white background instead of yellow text with black background.

 Write-Host "TextToOutput" -ForegroundColor Yellow -BackgroundColor Black

image

Expected behavior

Yellow text with black background.

Actual behavior

Yellow text with white background.

@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 Feb 11, 2021
@DHowett
Copy link
Member

DHowett commented Feb 11, 2021

Unfortunately, this is by design. PowerShell erroneously tells us to use a black background so often that it would cause there to be black streaks across the display (even if the terminal background was set to white or acrylic transparency.)

We had to disable black for PowerShell, specifically. #6810. Tracking the "fix" in /dup #6807.

@ghost
Copy link

ghost commented Feb 11, 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 Feb 11, 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 Feb 11, 2021
@KalleOlaviNiemitalo
Copy link

I presume it is caused by #6810, i.e. PowerShell asks for a black background when it really wants a default background, and Windows Terminal tries to work around that by recognising the powershell.exe name and giving it the default background when it asks for a black background.

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

3 participants