output all the colour combinations for text/background in powershell https://stackoverflow.com/questions/20541456/list-of-all-colors-available-for-powershell/41954792#41954792
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# output all the colour combinations for text/background | |
# https://stackoverflow.com/questions/20541456/list-of-all-colors-available-for-powershell/41954792#41954792 | |
$colors = [enum]::GetValues([System.ConsoleColor]) | |
Foreach ($bgcolor in $colors){ | |
Foreach ($fgcolor in $colors) { Write-Host "$fgcolor|" -ForegroundColor $fgcolor -BackgroundColor $bgcolor -NoNewLine } | |
Write-Host " on $bgcolor" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're welcome @pkutaj
Thanks for the tip @B4Art