Ascii: Fix colors on light terminals
This commit is contained in:
parent
466e92b2d4
commit
b8502a8b44
2 changed files with 23 additions and 21 deletions
6
neofetch
6
neofetch
|
@ -2471,7 +2471,7 @@ colors() {
|
|||
;;
|
||||
|
||||
"Solus"*)
|
||||
setcolors 7 4 0
|
||||
setcolors 4 7
|
||||
;;
|
||||
|
||||
"Trisquel"* | "NixOS"* | "Zorin"*)
|
||||
|
@ -2549,8 +2549,8 @@ setcolors() {
|
|||
|
||||
color() {
|
||||
case "$1" in
|
||||
[0-7]) printf "%b%s" "${reset}\033[3${1}m" ;;
|
||||
"fg") printf "%b%s" "$reset" ;;
|
||||
[0-6]) printf "%b%s" "${reset}\033[3${1}m" ;;
|
||||
7 | "fg") printf "%b%s" "$reset" ;;
|
||||
*) printf "%b%s" "\033[38;5;${1}m" ;;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue