What color setting is a .NET property name and how can I change it?

Welcome Forums General PowerShell Q&A What color setting is a .NET property name and how can I change it?

This topic contains 4 replies, has 3 voices, and was last updated by

 
Participant
3 weeks, 5 days ago.

  • Author
    Posts
  • #125256

    Participant
    Points: 17
    Rank: Member

    What the heck is with #PowerShell colors? I typed "$host.privatedata", but only "$host." shows up on the screen. What's the full list of color settings I can set? All of the ColorTool themes suck, which is how I got into this mess in the first place. I just want to be able to see everything on my screen. Thanks!

  • #125283

    Participant
    Points: 889
    Helping Hand
    Rank: Major Contributor

    See $host.ui.RawUI .

    Your color change will be=e available only in that PowerShell console session.

  • #125826

    Participant
    Points: 17
    Rank: Member

    Obviously it can't just be $host.ui.RawUI.ForegroundColor, because in my example, "$host." shows in one color and "PrivateData" shows up in another color. I want to know what those color settings are for each of the two pieces of text that I entered at the same time and how to change them.

     

  • #125847
    js

    Participant
    Points: 326
    Helping Hand
    Rank: Contributor

    See set-psreadlineoption for powershell 5.1.

  • #125937

    Participant
    Points: 17
    Rank: Member

    Thank you — I believe that is what I'm looking for.

You must be logged in to reply to this topic.