colorscripts/colortest-slim.ps1
$T = '*' # The test text Write-Host "`n 40m 41m 42m 43m 44m 45m 46m 47m" $FGsArray = @(' m', ' 1m', ' 30m', '1;90m', ' 31m', '1;91m', ' 32m', '1;92m', ' 33m', '1;93m', ' 34m', '1;94m', ' 35m', '1;95m', ' 36m', '1;96m', ' 37m', '1;97m') foreach ($FGs in $FGsArray) { $FG = $FGs.Trim() Write-Host " $FGs " -NoNewline $BGsArray = @('40m', '41m', '42m', '43m', '44m', '45m', '46m', '47m') foreach ($BG in $BGsArray) { Write-Host "`e[$FG`e[$BG $T `e[0m" -NoNewline } Write-Host "" } Write-Host "" |