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 () {
if [ "$1" == 7 ]; then
printf "%b%s" "\033[0m"
else
printf "%b%s" "\033[0m\033[3${1}m"
fi
case "$1" in
[0-6]) printf "%b%s" "\033[0m\033[3${1}m" ;;
7) printf "%b%s" "\033[0m" ;;
*) printf "%b%s" "\033[38;5;${1}m" ;;
esac
}