Skip to content

Instantly share code, notes, and snippets.

@squarefrog
Created June 10, 2014 08:04
Show Gist options
  • Save squarefrog/6bc58c99abafd7f09e51 to your computer and use it in GitHub Desktop.
Save squarefrog/6bc58c99abafd7f09e51 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Loop through each colour and print to the Terminal
for i in {0..255} ; do
printf "\x1b[38;5;${i}mcolour${i}\n"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment