1
0
Fork 0

ansi-colours: Sort colors better if display is narrow

This commit is contained in:
tastytea 2022-03-19 14:15:40 +01:00
parent 25c887bd38
commit a649fd2f64
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function _ansi-colors_8()
print "\e[1;97m${title}:\e[0m"
print "Regular Bold Underline Italic Crossed Dim Blinking Reversed"
for n in {${start}..$(( ${start}+7 ))}; do
print -c "\e[0;${n}m\\\e[0;${n}m\e[m" "\e[1;${n}m\\\e[1;${n}m\e[m" \
print -c -a "\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[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"