Skip to content

Instantly share code, notes, and snippets.

@reschex
Last active November 21, 2023 13:49
Show Gist options
  • Save reschex/c01fb85106c7410e5a5f87d7a08a80b5 to your computer and use it in GitHub Desktop.
Save reschex/c01fb85106c7410e5a5f87d7a08a80b5 to your computer and use it in GitHub Desktop.
powershell output colour variables
# enable colours
$ESC=[char]27
$RED="$ESC[31m"
$GREEN="$ESC[32m"
$YELLOW="$ESC[33m"
$BLUE="$ESC[34m"
$MAGENTA="$ESC[35m"
$CYAN="$ESC[36m"
$END="$ESC[0m"
# enable special text formating
$BOLD="$ESC[1m"
$LOW="$ESC[2m"
$UNDERLINE="$ESC[4m"
$INVERT="$ESC[7m"
$PASSWORD="$ESC[8m"
$BLINK="$ESC[5m"
$NORMAL="$ESC[0m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment