PowerShell Colors for Operator & Parameter

%3CLINGO-SUB%20id%3D%22lingo-sub-3284231%22%20slang%3D%22en-US%22%3EPowerShell%20Colors%20for%20Operator%20%26amp%3B%20Parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3284231%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%3C%2FP%3E%3CP%3EI%20have%20some%20weird%20behavior%20here.%3C%2FP%3E%3CP%3EWhen%20I%20work%20with%20PowerShell%207%20over%20the%20Windows%20Console%20Host%2C%20the%20Operator%20and%20Parameter%20color%20are%20completely%20black%2C%20and%20I%20can't%20see%20them%20when%20I%20type%20an%20Operator%20or%20Parameter.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22preuley30_0-1649842022253.png%22%20style%3D%22width%3A%20505px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363728iA912E8D52D95F580%2Fimage-dimensions%2F505x543%3Fv%3Dv2%22%20width%3D%22505%22%20height%3D%22543%22%20role%3D%22button%22%20title%3D%22preuley30_0-1649842022253.png%22%20alt%3D%22preuley30_0-1649842022253.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWhen%20I%20work%20with%20PS7%20over%20the%20Windows%20Terminal%2C%20the%20Operator%20and%20Parameter%20are%20visible.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22preuley30_1-1649842167772.png%22%20style%3D%22width%3A%20504px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363729i0315BE24F979206D%2Fimage-dimensions%2F504x542%3Fv%3Dv2%22%20width%3D%22504%22%20height%3D%22542%22%20role%3D%22button%22%20title%3D%22preuley30_1-1649842167772.png%22%20alt%3D%22preuley30_1-1649842167772.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBoth%20windows%20have%20the%20same%20background%20color%20(0c0c0c)%20and%20I%20copied%20the%20value%20from%20the%20Windows%20Console%20Host%20PS7%2C%20to%20make%20sure%20it%20has%20the%20same%20value%20as%20the%20window%20from%20the%20Windows%20Terminal%20PS7.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20a%20fix%2Fexplanation%20for%20this%3F%20Thanks.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3284231%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EColors%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%207%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3292234%22%20slang%3D%22en-US%22%3ERe%3A%20PowerShell%20Colors%20for%20Operator%20%26amp%3B%20Parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3292234%22%20slang%3D%22en-US%22%3EThanks%20anyway%20for%20your%20efforts.%20Is%20not%20tragic.%20I%20will%20just%20work%20with%20the%20terminal.%20%3A)%3C%2Fimg%3E%20have%20a%20nice%20weekend.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3288337%22%20slang%3D%22en-US%22%3ERe%3A%20PowerShell%20Colors%20for%20Operator%20%26amp%3B%20Parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3288337%22%20slang%3D%22en-US%22%3E%3A(%3C%2Fimg%3E%20Don't%20know%20anything%20else%2C%20hope%20some%20has%20an%20idea%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3284681%22%20slang%3D%22en-US%22%3ERe%3A%20PowerShell%20Colors%20for%20Operator%20%26amp%3B%20Parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3284681%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1209009%22%20target%3D%22_blank%22%3E%40Harm_Veenstra%3C%2FA%3E%26nbsp%3BUnfortunately%20did%20not%20help...%20%3A%5C%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222022-04-13_17-22-09.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363867i9268FE8457B6B834%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222022-04-13_17-22-09.gif%22%20alt%3D%222022-04-13_17-22-09.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3284657%22%20slang%3D%22en-US%22%3ERe%3A%20PowerShell%20Colors%20for%20Operator%20%26amp%3B%20Parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3284657%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F661699%22%20target%3D%22_blank%22%3E%40preuley30%3C%2FA%3E%26nbsp%3BAnd%20pressing%20Ok%20afterwards%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Harm_Veenstra_0-1649862702436.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363858i457F4D14EE08AB64%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Harm_Veenstra_0-1649862702436.png%22%20alt%3D%22Harm_Veenstra_0-1649862702436.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3284621%22%20slang%3D%22en-US%22%3ERe%3A%20PowerShell%20Colors%20for%20Operator%20%26amp%3B%20Parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3284621%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1209009%22%20target%3D%22_blank%22%3E%40Harm_Veenstra%3C%2FA%3E%26nbsp%3Bstill%20the%20same...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22preuley30_0-1649860962229.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363852iF2F16A6F1EA23CC0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22preuley30_0-1649860962229.png%22%20alt%3D%22preuley30_0-1649860962229.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20typed%20in%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EPS%20C%3A%5CWindows%5CSystem32%26gt%3B%20pwsh%20-noprofile%0APowerShell%207.2.2%0ACopyright%20(c)%20Microsoft%20Corporation.%0A%0Ahttps%3A%2F%2Faka.ms%2Fpowershell%0AType%20'help'%20to%20get%20help.%0A%0APS%20C%3A%5CWindows%5CSystem32%26gt%3B%20ffjsodfj%20-jfisdjfij%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3284392%22%20slang%3D%22en-US%22%3ERe%3A%20PowerShell%20Colors%20for%20Operator%20%26amp%3B%20Parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3284392%22%20slang%3D%22en-US%22%3ERunning%20pwsh%20-noprofile%20doesn't%20change%20anything%3F%20(Just%20to%20rule%20out%20profile%20issues)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3284327%22%20slang%3D%22en-US%22%3ERe%3A%20PowerShell%20Colors%20for%20Operator%20%26amp%3B%20Parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3284327%22%20slang%3D%22en-US%22%3EHi%2C%20thanks%20for%20your%20reply.%3CBR%20%2F%3EI've%20tested%20the%20behavior%20with%20light%20mode%20on%2C%20but%20it%20changed%20nothing%20%3A%5C%3C%2Fimg%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3284320%22%20slang%3D%22en-US%22%3ERe%3A%20PowerShell%20Colors%20for%20Operator%20%26amp%3B%20Parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3284320%22%20slang%3D%22en-US%22%3EI%20did%20have%20an%20issue%20with%20Windows%2011%20themes%20in%20which%20coloring%20was%20weird%2C%20does%20it%20change%20when%20you%20change%20your%20Windows%20theme%20to%20something%20light%20instead%20of%20dark%3F%3C%2FLINGO-BODY%3E
Contributor

Hi all

I have some weird behavior here.

When I work with PowerShell 7 over the Windows Console Host, the Operator and Parameter color are completely black, and I can't see them when I type an Operator or Parameter.preuley30_0-1649842022253.png

When I work with PS7 over the Windows Terminal, the Operator and Parameter are visible.

preuley30_1-1649842167772.png

Both windows have the same background color (0c0c0c) and I copied the value from the Windows Console Host PS7, to make sure it has the same value as the window from the Windows Terminal PS7.

 

Has anyone a fix/explanation for this? Thanks. :)

 

8 Replies
I did have an issue with Windows 11 themes in which coloring was weird, does it change when you change your Windows theme to something light instead of dark?
Hi, thanks for your reply.
I've tested the behavior with light mode on, but it changed nothing :\
Running pwsh -noprofile doesn't change anything? (Just to rule out profile issues)

@Harm_Veenstra still the same...

 

preuley30_0-1649860962229.png

 

What I typed in:

PS C:\Windows\System32> pwsh -noprofile
PowerShell 7.2.2
Copyright (c) Microsoft Corporation.

https://aka.ms/powershell
Type 'help' to get help.

PS C:\Windows\System32> ffjsodfj -jfisdjfij

 

@preuley30 And pressing Ok afterwards?

Harm_Veenstra_0-1649862702436.png

 

@Harm_Veenstra Unfortunately did not help... :\

 

2022-04-13_17-22-09.gif

:( Don't know anything else, hope some has an idea?
Thanks anyway for your efforts. Is not tragic. I will just work with the terminal. :) have a nice weekend.