summaryrefslogtreecommitdiffstats
path: root/256colors.sh
blob: 860b1cd6c2dc275161729e412170d35d94659bed (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

echo '^[[38;5;${i}m'

for i in {01..255}; do
	echo -en "\e[38;5;${i}mColor $i\t"
	if [ $i -eq 15 ]; then
		j=5
	fi
	[ $((++j%6)) -eq 0 ] && echo
done