erm/scripts/256-colour.sh

10 lines
178 B
Bash
Raw Normal View History

2021-07-30 22:29:20 +00:00
#!/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