print 8 should be written in white as well, print256colours
This commit is contained in:
parent
161f665bae
commit
4e765611f7
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ function contrast_colour {
|
|||
colour="$1"
|
||||
|
||||
if (( colour < 16 )); then # Initial 16 ANSI colours
|
||||
(( colour == 0 )) && printf "15" || printf "0"
|
||||
(( colour == 0 || colour == 8 )) && printf "15" || printf "0"
|
||||
return
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue