Last active
December 15, 2015 23:19
-
-
Save drmohundro/5339473 to your computer and use it in GitHub Desktop.
PowerShell snippet to output all colors.
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
[Enum]::GetNames([System.ConsoleColor]) | | |
foreach { | |
$foregroundColor = $_ | |
$backgroundColor = 'Black' | |
if ($_ -eq 'Black') { | |
$backgroundColor = 'White' | |
} | |
Write-Host -foregroundcolor $foregroundColor -backgroundColor $backgroundColor $foregroundColor | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure makes me wish that Windows had a good 256 color terminal instead of a measly 16 colors.