Neofetch can now use all 256 terminal colors when using --color or the color array

This commit is contained in:
Dylan 2016-04-24 09:34:02 +10:00
parent 87483e06a6
commit cd60eed15f

View file

@ -2434,11 +2434,11 @@ setcolors () {
} }
color () { color () {
if [ "$1" == 7 ]; then case "$1" in
printf "%b%s" "\033[0m" [0-6]) printf "%b%s" "\033[0m\033[3${1}m" ;;
else 7) printf "%b%s" "\033[0m" ;;
printf "%b%s" "\033[0m\033[3${1}m" *) printf "%b%s" "\033[38;5;${1}m" ;;
fi esac
} }