diff options
author | rudson <rudson@04377dda-e619-0410-9926-eae83683ac58> | 2008-04-07 05:35:12 +0000 |
---|---|---|
committer | rudson <rudson@04377dda-e619-0410-9926-eae83683ac58> | 2008-04-07 05:35:12 +0000 |
commit | 962a86cf11f2904b942a35564a876f5c4aad3527 (patch) | |
tree | 020d6a366be5479ab29c2e59fe985fa84de15680 /trunk/lib | |
parent | 098eaabf5482e642c19504719d83ffad1956a302 (diff) | |
download | simplepkg-962a86cf11f2904b942a35564a876f5c4aad3527.tar.gz simplepkg-962a86cf11f2904b942a35564a876f5c4aad3527.tar.bz2 |
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@490 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib')
-rw-r--r-- | trunk/lib/common.sh | 42 |
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 |