Skip to content

Instantly share code, notes, and snippets.

@Erreur32
Last active March 13, 2018 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Erreur32/5f983861fde63d4155967fe8a47bca9c to your computer and use it in GitHub Desktop.
Save Erreur32/5f983861fde63d4155967fe8a47bca9c to your computer and use it in GitHub Desktop.
Bash-color-16.sh
for code in {30..37}; do \
echo -en "\e[${code}m"'\\e['"$code"'m'"\e[0m"; \
echo -en " \e[$code;1m"'\\e['"$code"';1m'"\e[0m"; \
echo -en " \e[$code;3m"'\\e['"$code"';3m'"\e[0m"; \
echo -en " \e[$code;4m"'\\e['"$code"';4m'"\e[0m"; \
echo -e " \e[$((code+60))m"'\\e['"$((code+60))"'m'"\e[0m"; \
done
## http://jafrog.com/2013/11/23/colors-in-terminal.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment