summaryrefslogtreecommitdiff
path: root/functions/color.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-10-29 18:08:54 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:43 +0100
commit961aa2f3b795891d5011f1c28816d6b1bffcb2cd (patch)
tree1579e97d2f595d7d2a0bd90332ea35b84600bf67 /functions/color.sh
parentb28ffecee0815d624a17e77bb372450224ca27c4 (diff)
downloadlive-build-961aa2f3b795891d5011f1c28816d6b1bffcb2cd.zip
live-build-961aa2f3b795891d5011f1c28816d6b1bffcb2cd.tar.gz
Updating color functions.
Diffstat (limited to 'functions/color.sh')
-rwxr-xr-xfunctions/color.sh41
1 files changed, 22 insertions, 19 deletions
diff --git a/functions/color.sh b/functions/color.sh
index 771fffc..feac48b 100755
--- a/functions/color.sh
+++ b/functions/color.sh
@@ -7,31 +7,34 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
-NO_COLOR=""
+if [ "${LH_COLOR}" != "disabled" ]
+then
+ NO_COLOR="\033[0m"
-UNDERSCORE=""
-BLINK=""
+ UNDERSCORE="\033[4m"
+ BLINK="\033[5m"
-BLACK=""
-DARK_GRAY=""
+ BLACK="\033[0;30m"
+ DARK_GRAY="\033[1;30m"
-RED=""
-LIGHT_RED=""
+ RED="\033[0;31m"
+ LIGHT_RED="\033[1;31m"
-GREEN=""
-LIGHT_GREEN=""
+ GREEN="\033[0;32m"
+ LIGHT_GREEN="\033[1;32m"
-BROWN=""
-YELLOW=""
+ BROWN="\033[0;33m"
+ YELLOW="\033[1;33m"
-BLUE=""
-LIGHT_BLUE=""
+ BLUE="\033[0;34m"
+ LIGHT_BLUE="\033[1;34m"
-PURPLE=""
-LIGHT_PURPLE=""
+ PURPLE="\033[0;35m"
+ LIGHT_PURPLE="\033[1;35m"
-CYAN=""
-LIGHT_CYAN=""
+ CYAN="\033[0;36m"
+ LIGHT_CYAN="\033[1;36m"
-GRAY=""
-WHITE=""
+ GRAY="\033[0;37m"
+ WHITE="\033[1;37m"
+fi