dotfiles/bin/colortest256
Fernando Schauenburg a6f51c9be3 bin: remove comma from my scripts
The leading comma seemed like a good idea to namespace my commands but
in practice in turned out to just be annoying and not provide any real
benefits. So down with the comma...
2021-08-08 23:56:17 +02:00

11 lines
215 B
Bash
Executable file

#!/bin/sh
# Print all 256 colors
for i in $(seq 0 15); do
for j in $(seq 0 15); do
n=$(( 16 * i + j ))
printf '%s %3d ' "$(tput setab $n)" "$n"
done
printf '%s\n' "$(tput sgr0)"
done