dotfiles/bin/colors256

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