Skip to content

Instantly share code, notes, and snippets.

@gabor-meszaros
Last active July 25, 2017 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabor-meszaros/eef47f8e25afd1e79192 to your computer and use it in GitHub Desktop.
Save gabor-meszaros/eef47f8e25afd1e79192 to your computer and use it in GitHub Desktop.
Script to test terminal colors
#!/bin/sh
for ((color = 0; color <= 255; color++)); do
tput setaf "$color";
printf "test";
done
printf "\nUse the \"reset\" command to reset the previous color settings.\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment