aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/lib')
-rw-r--r--trunk/lib/common.sh42
1 files changed, 32 insertions, 10 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 4b76e6d..0fe546c 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -885,27 +885,49 @@ function color_select {
# messag - Commum messages
# error - Error messages
# normal - turn off color
+
case "$1" in
'gray')
- commun="\033[37;1m"
- messag="\033[37;1m"
- error="\033[30;1m"
- alert="\033[37m"
+ # colors
normal="\033[m"
+ dark_gray="\033[30;1m"
+ gray="\033[37m"
+ white="\033[37;1m"
+
+ red=$dark_gray
+ blue=$dark_gray
+ green=$gray
+ yellow=$gray
+
+ # Actions
+ commun=$white
+ messag=$white
+ error=$dark_gray
+ alert=$gray
;;
'color')
- commun="\033[34;1m" # green
- messag="\033[32;1m" # blue
- error="\033[31;1m" # red
- alert="\033[33;1m" # yellow
- normal="\033[m" # normal
+ # colors
+ normal="\033[m"
+ dark_gray="\033[30;1m"
+ gray="\033[37m"
+ white="\033[37;1m"
+
+ red="\033[31;1m"
+ blue="\033[34;1m"
+ green="\033[32;1m"
+ yellow="\033[33;1m"
+
+ # Actions
+ commun=$green
+ messag=$blue
+ error=$red
+ alert=$yellow
;;
*)
commun=""
messag=""
error=""
alert=""
- normal=""
;;
esac