From 65eaeb7ce935952fc23cfc48d11b74e96e6383e4 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sun, 24 Jul 2016 13:05:36 +0200 Subject: [PATCH] Add header as color --- include/consts | 17 +++++++++++------ include/functions | 19 +++++++++++-------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/include/consts b/include/consts index d8486d26..d29018e5 100644 --- a/include/consts +++ b/include/consts @@ -239,12 +239,6 @@ unset LANG # ################################################################################# # - NORMAL="" - WARNING="" # Bad (red) - SECTION="" # Section (yellow) - NOTICE="" # Notice (yellow) - OK="" # Ok (green) - BAD="" # Bad (red) # Normal color names CYAN="" @@ -260,10 +254,21 @@ unset LANG YELLOW="" WHITE="" + # Markup BOLD="${WHITE}" # With background BG_BLUE="" + + # Semantic names + HEADER="${WHITE}" + NORMAL="" + WARNING="" # Bad (red) + SECTION="" # Section (yellow) + NOTICE="" # Notice (yellow) + OK="" # Ok (green) + BAD="" # Bad (red) + # ################################################################################# # diff --git a/include/functions b/include/functions index b47cad7b..5030eb08 100644 --- a/include/functions +++ b/include/functions @@ -1855,13 +1855,6 @@ RemoveColors() { COLORS=0 # disable most color selections - NORMAL="" - WARNING="" - SECTION="" - NOTICE="" - OK="" - BAD="" - BOLD="" # Normal color names CYAN="" @@ -1878,7 +1871,17 @@ WHITE="" # Colors with background - BG_BLUE= + BG_BLUE="" + + # Semantic names + BAD="" + BOLD="" + HEADER="" + NORMAL="" + NOTICE="" + OK="" + WARNING="" + SECTION="" } ################################################################################