From c090e73ca139398e254f18a1365f69cab3945cf9 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Mon, 11 Jul 2016 20:06:46 +0200 Subject: Add blue colors for tips --- include/consts | 3 +++ include/functions | 4 +++- 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="" GRAY="" GREEN="" + LIGHTBLUE="" MAGENTA="" PURPLE="" RED="" YELLOW="" WHITE="" + # With background + BG_BLUE="" # ################################################################################# # 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 -- cgit v1.2.3