mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2025-01-05 19:08:41 +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"
|
_info_nol "$2"
|
||||||
else
|
else
|
||||||
case "$1" in
|
case "$1" in
|
||||||
red) col="\033[101m\033[30m";;
|
red) col="\033[41m\033[30m";;
|
||||||
green) col="\033[102m\033[30m";;
|
green) col="\033[42m\033[30m";;
|
||||||
yellow) col="\033[103m\033[30m";;
|
yellow) col="\033[43m\033[30m";;
|
||||||
blue) col="\033[104m\033[30m";;
|
blue) col="\033[44m\033[30m";;
|
||||||
*) col="";;
|
*) col="";;
|
||||||
esac
|
esac
|
||||||
_info_nol "$col $2 \033[0m"
|
_info_nol "$col $2 \033[0m"
|
||||||
|
Loading…
Reference in New Issue
Block a user