aminal/scripts/256-colour.sh

10 lines
178 B
Bash
Executable File

#!/usr/bin/env bash
for i in {0..255} ; do
printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i"
if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 16 == 0 )); then
printf "\n";
fi
done