diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-07-11 21:06:46 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-07-11 21:06:46 +0300 |
commit | c090e73ca139398e254f18a1365f69cab3945cf9 (patch) | |
tree | 46c9449b63c1c7a7eef9d131766d905ee399dd98 /include | |
parent | 38e6ff18d45081ef6d9185802a6db8656779a412 (diff) |
Add blue colors for tips
Diffstat (limited to 'include')
-rw-r--r-- | include/consts | 3 | ||||
-rw-r--r-- | include/functions | 4 | ||||
-rw-r--r-- | include/parameters | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/include/consts b/include/consts index 37943017..c8d17e1b 100644 --- a/include/consts +++ b/include/consts @@ -253,12 +253,15 @@ unset LANG DARKGRAY="[0;30m" GRAY="[0;37m" GREEN="[1;32m" + LIGHTBLUE="[0;94m" MAGENTA="[1;35m" PURPLE="[0;35m" RED="[1;31m" YELLOW="[1;33m" WHITE="[1;37m" + # With background + BG_BLUE="[0;44m" # ################################################################################# # diff --git a/include/functions b/include/functions index 080e3523..dfa71ce1 100644 --- a/include/functions +++ b/include/functions @@ -553,7 +553,9 @@ if [ ${CRONJOB} -eq 0 ]; then # Check if we already have already discovered a proper echo command tool. It not, set it default to 'echo'. if [ "${ECHOCMD}" = "" ]; then ECHOCMD="echo"; fi - ${ECHOCMD} "${WHITE}[${BLUE}TIP${NORMAL}${WHITE}]${NORMAL}: $1" + printf "\n" + ${ECHOCMD} " ${BG_BLUE}[TIP]${NORMAL}: ${LIGHTBLUE}$1${NORMAL}" + printf "\n" else echo "${TEXT}${RESULTPART}" fi diff --git a/include/parameters b/include/parameters index 032c8f55..5fcb7b0c 100644 --- a/include/parameters +++ b/include/parameters @@ -236,7 +236,7 @@ # Don't use colors --no-colors | --nocolors) COLORS=0 - NORMAL=""; WARNING=""; SECTION=""; NOTICE=""; OK=""; BAD=""; BLUE=""; CYAN=""; MAGENTA=""; PURPLE=""; YELLOW=""; WHITE=""; GREEN=""; RED="" + BG_BLUE=""; NORMAL=""; WARNING=""; SECTION=""; NOTICE=""; OK=""; BAD=""; BLUE=""; CYAN=""; LIGHTBLUE=""; MAGENTA=""; PURPLE=""; YELLOW=""; WHITE=""; GREEN=""; RED="" ;; # Disable logging |