Why does powershell call the color sapphire, darkmagenta?

Welcome Forums General PowerShell Q&A Why does powershell call the color sapphire, darkmagenta?

This topic contains 5 replies, has 2 voices, and was last updated by

 
Participant
1 year ago.

  • Author
    Posts
  • #84721
    js

    Participant
    Points: 326
    Helping Hand
    Rank: Contributor

    Just a weird thing I've noticed in powershell. When you run get-psreadlineoption, it says the background is darkmagenta, but it looks more like dark blue or sapphire.

  • #84722

    Participant
    Points: 0
    Rank: Member

    Comes from .Net: https://msdn.microsoft.com/en-us/library/system.windows.media.colors(v=vs.110).aspx
    DarkMagenta Gets the system-defined color that has an ARGB value of #FF8B008B.

    • #84724
      js

      Participant
      Points: 326
      Helping Hand
      Rank: Contributor

      But the appearance is actually #012456 or rgb(1,36,86) or sapphire in the windows console or ise. I guess other settings override it.

  • #84727

    Participant
    Points: 0
    Rank: Member

    You could use Color Tool: https://github.com/Microsoft/console/releases/tag/1708.14008
    I set it to OneHalflights, reasonably OK now.

    • #84728
      js

      Participant
      Points: 326
      Helping Hand
      Rank: Contributor

      It doesn't seem to run.

  • #84773

    Participant
    Points: 0
    Rank: Member

    You run it from powershell prompt, not as a standalone. It will show command-line options you can use.

The topic ‘Why does powershell call the color sapphire, darkmagenta?’ is closed to new replies.