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

Transparent background for text set to a black background in PowerShell #9342

Closed
Johbii opened this issue Mar 2, 2021 · 2 comments
Closed
Labels
Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@Johbii
Copy link

Johbii commented Mar 2, 2021

Environment

Windows build number: 10.0.18363.778
Windows Terminal version (if applicable): 1.6.10571.0

Any other software?
Powershell version: 5.1.18362.752

Steps to reproduce

  1. Open a PowerShell instance in Windows Terminal
  2. Enter Write-Error -Message "anything" (or otherwise receive an error/warning/any message with a black background)

Expected behavior

screenshot of PowerShell with background colors working

Critical error messages and warning messages are outlined with a black background to be more readable and noticeable compared with regular output (as is default with PowerShell).

Actual behavior

screenshot of Windows Terminal with colors not working

Any text highlighted with a black background is made transparent/changed to the color of the terminal background.

Notice 40m is black on the old console host but not in Windows Terminal.

@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 2, 2021
@Johbii Johbii changed the title Transparent background for text with set to a black background in PowerShell Transparent background for text set to a black background in PowerShell Mar 2, 2021
@j4james
Copy link
Collaborator

j4james commented Mar 6, 2021

Quoting DHowett from issue #9115 (comment):

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.

@Johbii
Copy link
Author

Johbii commented Mar 7, 2021

Quoting DHowett from issue #9115 (comment):

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.

Oh OK, thanks for responding. Sorry for the dupe I wasn't aware of the issue.

@Johbii Johbii closed this as completed Mar 7, 2021
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 Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

2 participants