Ascii: Fix colors on light terminals

This commit is contained in:
Dylan Araps 2016-10-27 08:20:20 +11:00
parent 466e92b2d4
commit b8502a8b44
2 changed files with 23 additions and 21 deletions

View file

@ -1,20 +1,22 @@
"\
${c3}......
.'${c1}D${c3}lddddddddddd'.
.'ddd${c1}XM${c3}xdddddddddddddd.
.dddddx${c1}MMM0${c3};dddddddddddddd.
'dddddl${c1}MMMMMN${c3}cddddddddddddddd.
ddddddc${c1}WMMMMMMW${c3}lddddddddddddddd.
ddddddc${c1}WMMMMMMMMO${c3}ddoddddddddddddd.
.ddddd:${c1}NMMMMMMMMMK${c3}dd${c1}NX${c3}od;c${c1}lxl${c3}dddddd
dddddc${c1}WMMMMMMMMMMNN${c3}dd${c1}MMXl${c3};d${c1}00xl;${c3}ddd.
ddddl${c1}WMMMMMMMMMMMMM${c3}d;${c1}MMMM0${c3}:dl${c1}XMMXk:${c3}'
dddo${c1}WMMMMMMMMMMMMMM${c3}dd${c1}MMMMMW${c3}od${c3};${c1}XMMMOd
${c3}.dd${c1}MMMMMMMMMMMMMMMM${c3}d:${c1}MMMMMMM${c3}kd${c1}lMKll
${c3}.;dk0${c1}KXNWWMMMMMMMMM${c3}dx${c1}MMMMMMM${c3}Xl;lxK;
${c3} 'dddddddd;:cclodcddxddolloxO0O${c1}d'
${c1} ckkxxxddddddddxxkOOO000Okdool.
${c2}.lddddxxxxxxddddooooooooood
.:oooooooooooooooooooc'
.,:looooooooooc;.
${c2} -\`\`\`\`\`\`\`\`\`\`\`
\`-+/------------.\`
.---:mNo---------------.
.-----yMMMy:---------------.
\`------oMMMMMm/----------------\`
.------/MMMMMMMN+----------------.
.------/NMMMMMMMMm-+/--------------.
\`------/NMMMMMMMMMN-:mh/-------------\`
.-----/NMMMMMMMMMMM:-+MMd//oso/:-----.
-----/NMMMMMMMMMMMM+--mMMMh::smMmyo:--
----+NMMMMMMMMMMMMMo--yMMMMNo-:yMMMMd/.
.--oMMMMMMMMMMMMMMMy--yMMMMMMh:-yMMMy-\`
\`-sMMMMMMMMMMMMMMMMh--dMMMMMMMd:/Ny+y.
\`-/+osyhhdmmNNMMMMMm-/MMMMMMMmh+/ohm+
.------------:://+-/++++++${c1}oshddys:
-hhhhyyyyyyyyyyyhhhhddddhysssso-
\`:ossssssyysssssssssssssssso:\`
\`:+ssssssssssssssssssss+-
\`-/+ssssssssssso+/-\`
\`.-----..\`
"

View file

@ -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
}