print 8 should be written in white as well, print256colours

This commit is contained in:
Von Random 2018-06-28 18:04:51 +03:00
parent 161f665bae
commit 4e765611f7

View file

@ -14,7 +14,7 @@ function contrast_colour {
colour="$1" colour="$1"
if (( colour < 16 )); then # Initial 16 ANSI colours if (( colour < 16 )); then # Initial 16 ANSI colours
(( colour == 0 )) && printf "15" || printf "0" (( colour == 0 || colour == 8 )) && printf "15" || printf "0"
return return
fi fi