Neofetch can now use all 256 terminal colors when using --color or the color array
This commit is contained in:
parent
87483e06a6
commit
cd60eed15f
1 changed files with 5 additions and 5 deletions
10
neofetch
10
neofetch
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue