Skip to content

Instantly share code, notes, and snippets.

@ichigotake
Created March 28, 2012 09:39
Show Gist options
  • Save ichigotake/2225067 to your computer and use it in GitHub Desktop.
Save ichigotake/2225067 to your computer and use it in GitHub Desktop.
Print collorpallet for terminal.
#!/bin/sh
for i in {0..255} ; do
printf "\x1b[38;5;${i}mcolour%3d " "${i}"
if [ $(expr $i % 7) == 0 ]
then
echo
fi
done
echo -e "\n\n"
echo 'format: \x1b[38;5;{$num}m'
printf "\x1b[38;5;m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment