mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Seperate bold attribute from colors
As suggested by @rwwiv Co-authored-by: William Wernert <william.wernert@gmail.com>
This commit is contained in:
committed by
James Conroy
parent
b9b3876069
commit
dfcabb5722
@@ -178,10 +178,11 @@ print_line() {
|
||||
local columns=35 # value used if not printing to a tty
|
||||
|
||||
if (( __tty == 1 )); then
|
||||
local NC; NC="$(tput sgr0)" # no color
|
||||
local red; red="$(tput setaf 1 bold)"
|
||||
local green; green="$(tput setaf 2 bold)"
|
||||
local yellow; yellow="$(tput setaf 3 bold)"
|
||||
local reset_attr; reset_attr="$(tput sgr0)" # reset all attributes
|
||||
local bold; bold="$(tput bold)"
|
||||
local red; red="$(tput setaf 1)"
|
||||
local green; green="$(tput setaf 2)"
|
||||
local yellow; yellow="$(tput setaf 3)"
|
||||
PADDING_CONSTANT=16 # two tabs wide
|
||||
|
||||
columns=$(tput cols)
|
||||
|
||||
Reference in New Issue
Block a user