add the functions needed for some keybindings
[zsh.git] / .zsh / functions / colortest
1 # -*- mode:sh -*-
2
3 # From: http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
4 local T='gYw' # The test text
5
6 local fg
7 local bg
8 printf "\n%12s" ""
9 for fg in {40..47}; do
10 printf "%7sm" ${fg}
11 done
12 printf "\n"
13 for fg in 0 1 $(for i in {30..37}; do echo $i 1\;$i; done); do
14 printf " %5s \e[%s %s " ${fg}m ${fg}m ${T}
15 for bg in {40..47}m; do
16 printf " \e[%s\e[%s %s \e[0m" ${fg}m ${bg} ${T}
17 done
18 printf "\n"
19 done
20 printf "\n"