Created
February 20, 2020 19:14
-
-
Save daxian-dbw/48e854d5848dd4f1b402f380a61318ea to your computer and use it in GitHub Desktop.
Test script to verify the ConsoleColor to VT sequences map is correct.
This file contains hidden or 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
Write-Host "ConsoleColor.Black:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor Black | |
"x1b[30m:`t`t`e[30mTESTING`e[0m" | |
Write-Host "ConsoleColor.Gray:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor Gray | |
"x1b[37m:`t`t`e[37mTESTING`e[0m" | |
Write-Host "ConsoleColor.Red:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor Red | |
"x1b[91m:`t`t`e[91mTESTING`e[0m" | |
Write-Host "ConsoleColor.Green:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor Green | |
"x1b[92m:`t`t`e[92mTESTING`e[0m" | |
Write-Host "ConsoleColor.Yellow:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor Yellow | |
"x1b[93m:`t`t`e[93mTESTING`e[0m" | |
Write-Host "ConsoleColor.Blue:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor Blue | |
"x1b[94m:`t`t`e[94mTESTING`e[0m" | |
Write-Host "ConsoleColor.Magenta:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor Magenta | |
"x1b[95m:`t`t`e[95mTESTING`e[0m" | |
Write-Host "ConsoleColor.Cyan:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor Cyan | |
"x1b[96m:`t`t`e[96mTESTING`e[0m" | |
Write-Host "ConsoleColor.White:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor White | |
"x1b[97m:`t`t`e[97mTESTING`e[0m" | |
Write-Host "ConsoleColor.DarkRed:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor DarkRed | |
"x1b[31m:`t`t`e[31mTESTING`e[0m" | |
Write-Host "ConsoleColor.DarkGreen:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor DarkGreen | |
"x1b[32m:`t`t`e[32mTESTING`e[0m" | |
Write-Host "ConsoleColor.DarkYellow:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor DarkYellow | |
"x1b[33m:`t`t`e[33mTESTING`e[0m" | |
Write-Host "ConsoleColor.DarkBlue:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor DarkBlue | |
"x1b[34m:`t`t`e[34mTESTING`e[0m" | |
Write-Host "ConsoleColor.DarkMagenta:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor DarkMagenta | |
"x1b[35m:`t`t`e[35mTESTING`e[0m" | |
Write-Host "ConsoleColor.DarkCyan:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor DarkCyan | |
"x1b[36m:`t`t`e[36mTESTING`e[0m" | |
Write-Host "ConsoleColor.DarkGray:`t" -NoNewline; Write-Host "TESTING" -ForegroundColor DarkGray | |
"x1b[90m:`t`t`e[90mTESTING`e[0m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment