mirror of
				https://github.com/speed47/spectre-meltdown-checker.git
				synced 2025-10-31 20:50:55 +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:
		| @@ -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" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user