summaryrefslogtreecommitdiff
path: root/etc/functions/colortable
blob: 4acdf92f32bc82a03c46a42c2f45170d1a00917c (plain)
1
2
3
4
5
6
7
## vim:ft=zsh
## print a table with all 256 color codes

for i in {0..255}; {
	printf " %s%-3s" $'\e[38;5;'${i}m $i
	(( (i+1) % (COLUMNS/4) < 1 )) && echo
}