[SCM] Debian Live build scripts branch, master, updated. 1.0.1-1-58-gbf387fd
Daniel Baumann
daniel at debian.org
Wed Oct 29 17:55:07 UTC 2008
The following commit has been merged in the master branch:
commit ac24c949ad8174fcaf6652ab16a1d36447acce3e
Author: Daniel Baumann <daniel at debian.org>
Date: Wed Oct 29 18:08:54 2008 +0100
Updating color functions.
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="[0m"
+if [ "${LH_COLOR}" != "disabled" ]
+then
+ NO_COLOR="\033[0m"
-UNDERSCORE="[4m"
-BLINK="[5m"
+ UNDERSCORE="\033[4m"
+ BLINK="\033[5m"
-BLACK="[0;30m"
-DARK_GRAY="[1;30m"
+ BLACK="\033[0;30m"
+ DARK_GRAY="\033[1;30m"
-RED="[0;31m"
-LIGHT_RED="[1;31m"
+ RED="\033[0;31m"
+ LIGHT_RED="\033[1;31m"
-GREEN="[0;32m"
-LIGHT_GREEN="[1;32m"
+ GREEN="\033[0;32m"
+ LIGHT_GREEN="\033[1;32m"
-BROWN="[0;33m"
-YELLOW="[1;33m"
+ BROWN="\033[0;33m"
+ YELLOW="\033[1;33m"
-BLUE="[0;34m"
-LIGHT_BLUE="[1;34m"
+ BLUE="\033[0;34m"
+ LIGHT_BLUE="\033[1;34m"
-PURPLE="[0;35m"
-LIGHT_PURPLE="[1;35m"
+ PURPLE="\033[0;35m"
+ LIGHT_PURPLE="\033[1;35m"
-CYAN="[0;36m"
-LIGHT_CYAN="[1;36m"
+ CYAN="\033[0;36m"
+ LIGHT_CYAN="\033[1;36m"
-GRAY="[0;37m"
-WHITE="[1;37m"
+ GRAY="\033[0;37m"
+ WHITE="\033[1;37m"
+fi
--
Debian Live build scripts
More information about the debian-live-changes
mailing list