Setting Powershell colors with hex values in profile script

前端 未结 5 1417
旧时难觅i
旧时难觅i 2021-01-11 17:09

I know I can change PowerShell console colors by setting in my profile something like:

$Host.UI.RawUI.BackgroundColor = \"White\"
Clear-Host
<
5条回答
  •  孤城傲影
    2021-01-11 17:32

    I doubt that's possible. The $Host.UI.RawUI.BackgroundColour is a System.ConsoleColor enumerator, thus there's only a finite set of colours that you could select. http://msdn.microsoft.com/en-GB/library/system.consolecolor.aspx

提交回复
热议问题