System.ConsoleColor
is an enum that lists 16 predefined to color the background and characters of text in the console. Black | DarkGray |
Blue | DarkBlue |
Cyan | DarkCyan |
Green | DarkGreen |
Magenta | DarkMagenta |
Red | DarkRed |
Yellow | DarkYellow |
Gray | DarkGray |
$host.privateData
backgroundColor
and foregroundColor
of the $host.ui.rawUI
object.
set-psReadLineOption
get-paletteIndexOfConsoleColor
of the PowerShell module console. BackgroundColor
and ForegroundColor
properties of System.Console
and System.Management.Automation.Host.PSHostRawUserInterface