Last active
December 26, 2015 00:59
-
-
Save o-eight/7068724 to your computer and use it in GitHub Desktop.
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 color <--> displayed color on this environment (checkd, zsh on OS X) | |
function testcolor() { | |
echo "\033[0;30m Black" | |
echo -n "\033[0m" | |
echo "\033[0;31m Red" | |
echo -n "\033[0m" | |
echo "\033[0;32m Green" | |
echo -n "\033[0m" | |
echo "\033[0;33m Brown" | |
echo -n "\033[0m" | |
echo "\033[0;34m Blue" | |
echo -n "\033[0m" | |
echo "\033[0;35m Purple" | |
echo -n "\033[0m" | |
echo "\033[0;36m Cyan" | |
echo -n "\033[0m" | |
echo "\033[0;37m Light Gray" | |
echo -n "\033[0m" | |
echo "\033[1;30m Dark Gray" | |
echo -n "\033[0m" | |
echo "\033[1;31m Light Red" | |
echo -n "\033[0m" | |
echo "\033[1;32m Light Green" | |
echo -n "\033[0m" | |
echo "\033[1;33m Yellow" | |
echo -n "\033[0m" | |
echo "\033[1;34m Light Blue" | |
echo -n "\033[0m" | |
echo "\033[1;35m Light Purple" | |
echo -n "\033[0m" | |
echo "\033[1;36m Light Cyan" | |
echo -n "\033[0m" | |
echo "\033[1;37m White" | |
echo -n "\033[0m" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment