]>
Commit | Line | Data |
---|---|---|
ce127c80 | 1 | #!/bin/zsh |
2 | attrs=(none bold dim italic underline blink undefined 'reverse video' invisible | |
3 | strikethrough) | |
4 | colors=(default black red green yellow blue magenta cyan white) | |
5 | for ai in {0..5} {7..9}; do | |
6 | [[ $ai == 0 ]] && a='' || a="$ai;" | |
7 | echo "$ai: $attrs[(($ai+1))]" | |
8 | for fi in {29..37}; do | |
9 | [[ $fi == 29 ]] && f='' || f="$fi;" | |
10 | echo -n ' ' | |
11 | for bi in {39..47}; do | |
12 | [[ $bi == 39 ]] && b='' || b="$bi" | |
13 | echo -ne "\e[$a$f$b""m${(r[7])colors[(($fi-28))]}\e[0m " | |
14 | done | |
15 | echo | |
16 | done | |
17 | done |