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 () {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue