1
0
Fork 0

Add crossed to ansi-colours, reorder variants

This commit is contained in:
tastytea 2022-03-19 08:48:25 +01:00
parent bdd3a88cba
commit b786ffb514
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 5 additions and 4 deletions

View File

@ -10,13 +10,14 @@ function _ansi-colors_8()
local start="${2}"
print "\e[1;97m${title}\e[0m:"
print "Regular Bold Underline Backgr. Dim Reversed Blinking"
print "Regular Bold Underline Italic Crossed Dim Blinking Reversed Background"
for n in {${start}..$(( ${start}+7 ))}; do
local nbg=$(( ${n}+10 ))
print -c "\e[0;${n}m\\\e[0;${n}m\e[m" "\e[1;${n}m\\\e[1;${n}m\e[m" \
"\e[4;${n}m\\\e[4;${n}m\e[m" "\e[${nbg}m\\\e[${nbg}m\e[m" \
"\e[2;${n}m\\\e[2;${n}m\e[m" "\e[7;${n}m\\\e[7;${n}m\e[m" \
"\e[5;${n}m\\\e[5;${n}m\e[m"
"\e[4;${n}m\\\e[4;${n}m\e[m" "\e[3;${n}m\\\e[3;${n}m\e[m" \
"\e[9;${n}m\\\e[9;${n}m\e[m" "\e[2;${n}m\\\e[2;${n}m\e[m" \
"\e[5;${n}m\\\e[5;${n}m\e[m" \
"\e[7;${n}m\\\e[7;${n}m\e[m" "\e[${nbg}m\\\e[${nbg}m\e[m"
done
}