Seperate bold attribute from colors

As suggested by @rwwiv

Co-authored-by: William Wernert <william.wernert@gmail.com>
This commit is contained in:
James Conroy
2022-02-10 19:32:14 -06:00
committed by James Conroy
parent b9b3876069
commit dfcabb5722

View File

@@ -178,10 +178,11 @@ print_line() {
local columns=35 # value used if not printing to a tty local columns=35 # value used if not printing to a tty
if (( __tty == 1 )); then if (( __tty == 1 )); then
local NC; NC="$(tput sgr0)" # no color local reset_attr; reset_attr="$(tput sgr0)" # reset all attributes
local red; red="$(tput setaf 1 bold)" local bold; bold="$(tput bold)"
local green; green="$(tput setaf 2 bold)" local red; red="$(tput setaf 1)"
local yellow; yellow="$(tput setaf 3 bold)" local green; green="$(tput setaf 2)"
local yellow; yellow="$(tput setaf 3)"
PADDING_CONSTANT=16 # two tabs wide PADDING_CONSTANT=16 # two tabs wide
columns=$(tput cols) columns=$(tput cols)