Created
March 14, 2016 21:01
-
-
Save johnmeehan/e314e5ea135f5f8e50c1 to your computer and use it in GitHub Desktop.
ANSI Colours for coloured terminal output.
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
# ANSI Colours for coloured terminal output. | |
# John Meehan 2016 | |
# foreground color | |
"\033[30m" #BLACK_TEXT | |
"\033[31m" #RED_TEXT | |
"\033[32m" #GREEN_TEXT | |
"\033[33m" #BROWN_TEXT | |
"\033[34m" #BLUE_TEXT | |
"\033[35m" #MAGENTA_TEXT | |
"\033[36m" #CYAN_TEXT | |
"\033[37m" #GRAY_TEXT | |
# background color | |
"\033[40m" #BLACK_BACK | |
"\033[41m" #RED_BACK | |
"\033[42m" #GREEN_BACK | |
"\033[43m" #BROWN_BACK | |
"\033[44m" #BLUE_BACK | |
"\033[45m" #MAGENTA_BACK | |
"\033[46m" #CYAN_BACK | |
"\033[47m" #WHITE_BACK | |
# ANSI control chars | |
"\033[0m" #RESET_COLORS | |
"\033[1m" #BOLD_ON | |
"\033[5m" #BLINK_ON | |
"\033[7m" #REVERSE_ON | |
"\033[22m" #BOLD_OFF | |
"\033[25m" #BLINK_OFF | |
"\033[27m" #REVERSE_OFF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment