Skip to content

Instantly share code, notes, and snippets.


Karol C. Gancarz CharlesIC

  • Government Digital Service
  • London, UK
View GitHub Profile
View powershell-test-colors.ps1
$colors = [enum]::GetValues([System.ConsoleColor])
$backgroundColors = @("Black", "White", "Blue", "DarkBlue", "Green", "DarkGreen", "Cyan", "DarkCyan", "Red", "DarkRed", "Magenta", "DarkMagenta", "Yellow", "DarkYellow", "Gray", "DarkGray")
Foreach ($bgcolor in $backgroundColors) {
Foreach ($color in $colors) { Write-Host " $color " -ForegroundColor $color -BackgroundColor $bgcolor -NoNewline }
Write-Host " on $bgcolor"
ForEach ($color in $colors) { Write-Host " $color " -ForegroundColor $color -NoNewline }
Write-Host " on host background"

Keybase proof

I hereby claim:

  • I am CharlesIC on github.
  • I am charlesic ( on keybase.
  • I have a public key whose fingerprint is 91FE C05C EE68 B50D EA7B 5AB2 0D40 EDE0 9505 8884

To claim this, I am signing this object: