From 962a86cf11f2904b942a35564a876f5c4aad3527 Mon Sep 17 00:00:00 2001 From: rudson Date: Mon, 7 Apr 2008 05:35:12 +0000 Subject: git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@490 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) (limited to 'trunk/lib') 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 -- cgit v1.2.3