Add echo_ prefixed colors that work with echo -e (re: #96)

pull/95/merge
Travis Swicegood 2012-01-26 08:18:22 -06:00
parent 12167fb1df
commit ae3acff27d
1 changed files with 45 additions and 0 deletions

View File

@ -10,6 +10,7 @@ cyan="\[\e[0;36m\]"
white="\[\e[1;37m\]" white="\[\e[1;37m\]"
orange="\[\e[33;40m\]" orange="\[\e[33;40m\]"
bold_black="\[\e[1;30m\]" bold_black="\[\e[1;30m\]"
bold_red="\[\e[1;31m\]" bold_red="\[\e[1;31m\]"
bold_green="\[\e[1;32m\]" bold_green="\[\e[1;32m\]"
@ -42,3 +43,47 @@ background_white="\[\e[47m\]"
normal="\[\e[00m\]" normal="\[\e[00m\]"
reset_color="\[\e[39m\]" reset_color="\[\e[39m\]"
# These colors are meant to be used with `echo -e`
echo_black="\033[0;30m"
echo_red="\033[0;31m"
echo_green="\033[0;32m"
echo_yellow="\033[0;33m"
echo_blue="\033[0;34m"
echo_purple="\033[0;35m"
echo_cyan="\033[0;36m"
echo_white="\033[1;37m"
echo_orange="\033[33;40m"
echo_bold_black="\033[1;30m"
echo_bold_red="\033[1;31m"
echo_bold_green="\033[1;32m"
echo_bold_yellow="\033[1;33m"
echo_bold_blue="\033[1;34m"
echo_bold_purple="\033[1;35m"
echo_bold_cyan="\033[1;36m"
echo_bold_white="\033[1;37m"
echo_bold_orange="\033[1;33;40m"
echo_underline_black="\033[4;30m"
echo_underline_red="\033[4;31m"
echo_underline_green="\033[4;32m"
echo_underline_yellow="\033[4;33m"
echo_underline_blue="\033[4;34m"
echo_underline_purple="\033[4;35m"
echo_underline_cyan="\033[4;36m"
echo_underline_white="\033[4;37m"
echo_underline_orange="\033[4;33;40m"
echo_background_black="\033[40m"
echo_background_red="\033[41m"
echo_background_green="\033[42m"
echo_background_yellow="\033[43m"
echo_background_blue="\033[44m"
echo_background_purple="\033[45m"
echo_background_cyan="\033[46m"
echo_background_white="\033[47m"
echo_normal="\033[00m"
echo_reset_color="\033[39m"