print 8 should be written in white as well, print256colours

master
Von Random 4 years ago
parent 161f665bae
commit 4e765611f7
  1. 2
      print256colours.sh

@ -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…
Cancel
Save