dotfiles/bin/,colortest256
2021-07-22 16:41:43 +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