color scheme is causing wierd visuals since Powershell 7.3 update #19061

Closed
opened 2026-01-31 06:32:39 +00:00 by claunia · 4 comments
Owner

Originally created by @HymanZHAN on GitHub (Dec 13, 2022).

Windows Terminal version

1.15.2875.0

Windows build number

10.0.22621.0

Other Software

Powershell 7.3, using One Half Dark theme

Steps to reproduce

Install Powershell 7.3 and run it in Windows Terminal

Expected Behavior

No response

Actual Behavior

image

The background color and foreground color of directory entries are reversed and don't look good at all...

Originally created by @HymanZHAN on GitHub (Dec 13, 2022). ### Windows Terminal version 1.15.2875.0 ### Windows build number 10.0.22621.0 ### Other Software Powershell 7.3, using One Half Dark theme ### Steps to reproduce Install Powershell 7.3 and run it in Windows Terminal ### Expected Behavior _No response_ ### Actual Behavior ![image](https://user-images.githubusercontent.com/26806995/207200348-76a9c493-3163-48e6-9f7b-1e2e7f702565.png) The background color and foreground color of directory entries are reversed and don't look good at all...
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 06:32:39 +00:00
Author
Owner

@HymanZHAN commented on GitHub (Dec 13, 2022):

Related issue (which discusses changes in Powershell 7.3) here: https://github.com/PowerShell/PowerShell/issues/18550

@HymanZHAN commented on GitHub (Dec 13, 2022): Related issue (which discusses changes in Powershell 7.3) here: https://github.com/PowerShell/PowerShell/issues/18550
Author
Owner

@elsaco commented on GitHub (Dec 13, 2022):

@HymanZHAN this must be from the effort of the PS team to use ANSI formatting via $psstyle. In a pwsh session type $psstyle.fileinfo to see all the coloring. I don't know if setting blue backgrounds for directories was intentional or an oversight. If you change the ANSI escape to colorize the foreground instead the listing looks like:

wt_14543_test

@elsaco commented on GitHub (Dec 13, 2022): @HymanZHAN this must be from the effort of the PS team to use ANSI formatting via `$psstyle`. In a pwsh session type `$psstyle.fileinfo` to see all the coloring. I don't know if setting blue backgrounds for directories was intentional or an oversight. If you change the ANSI escape to colorize the foreground instead the listing looks like: ![wt_14543_test](https://user-images.githubusercontent.com/3933920/207237198-a6c2c4ee-e107-4776-a3b2-4f60ae16c0ef.png)
Author
Owner

@HymanZHAN commented on GitHub (Dec 13, 2022):

Ah I get it. Sorry I wasn't in my right mind when posting the issue here. I sure hope that's an oversight though... I will create another issue over in the Powershell repo.

@HymanZHAN commented on GitHub (Dec 13, 2022): Ah I get it. Sorry I wasn't in my right mind when posting the issue here. I sure hope that's an oversight though... I will create another issue over in the Powershell repo.
Author
Owner

@DHowett commented on GitHub (Dec 13, 2022):

Sorry I wasn't in my right mind when posting the issue here.

No need to apologize! Thank you for following up.

@DHowett commented on GitHub (Dec 13, 2022): > Sorry I wasn't in my right mind when posting the issue here. No need to apologize! Thank you for following up.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19061