Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-07-24 14:05:36 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-07-24 14:05:36 +0300
commit65eaeb7ce935952fc23cfc48d11b74e96e6383e4 (patch)
treed3d4c62fc338299208bd7a209be6c084aeadecf1 /include
parentc1d351fe32194d71853c6cb7692127a7a6571b87 (diff)
Add header as color
Diffstat (limited to 'include')
-rw-r--r--include/consts17
-rw-r--r--include/functions19
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=""
}
################################################################################