mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-12-31 16:45:45 +01:00
fix(display): use text-mode compatible colors
in text-mode 80-cols TERM=linux terminals, colors were not displaying properly, one had to use --no-color to be able to read some parts of the text.
This commit is contained in:
parent
263ef65fec
commit
b3b7f634e6
@ -406,10 +406,10 @@ pstatus()
|
||||
_info_nol "$2"
|
||||
else
|
||||
case "$1" in
|
||||
red) col="\033[101m\033[30m";;
|
||||
green) col="\033[102m\033[30m";;
|
||||
yellow) col="\033[103m\033[30m";;
|
||||
blue) col="\033[104m\033[30m";;
|
||||
red) col="\033[41m\033[30m";;
|
||||
green) col="\033[42m\033[30m";;
|
||||
yellow) col="\033[43m\033[30m";;
|
||||
blue) col="\033[44m\033[30m";;
|
||||
*) col="";;
|
||||
esac
|
||||
_info_nol "$col $2 \033[0m"
|
||||
|
Loading…
Reference in New Issue
Block a user