Why does powershell call the color sapphire, darkmagenta?

This topic contains 5 replies, has 2 voices, and was last updated by  Pradeep Arora 2 weeks, 4 days ago.

  • Author
    Posts
  • #84721

    js
    Participant

    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

    Pradeep Arora
    Participant

    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

      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

    Pradeep Arora
    Participant

    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

      It doesn't seem to run.

  • #84773

    Pradeep Arora
    Participant

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

You must be logged in to reply to this topic.