From ae3acff27d9e244b174873086b767f68abb19184 Mon Sep 17 00:00:00 2001 From: Travis Swicegood Date: Thu, 26 Jan 2012 08:18:22 -0600 Subject: [PATCH] Add echo_ prefixed colors that work with echo -e (re: #96) --- themes/colors.theme.bash | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/themes/colors.theme.bash b/themes/colors.theme.bash index ff8776d..0516e1c 100644 --- a/themes/colors.theme.bash +++ b/themes/colors.theme.bash @@ -10,6 +10,7 @@ cyan="\[\e[0;36m\]" white="\[\e[1;37m\]" orange="\[\e[33;40m\]" + bold_black="\[\e[1;30m\]" bold_red="\[\e[1;31m\]" bold_green="\[\e[1;32m\]" @@ -42,3 +43,47 @@ background_white="\[\e[47m\]" normal="\[\e[00m\]" 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" -- 2.17.1