Skip to content

Instantly share code, notes, and snippets.

@nadiaholmquist
Last active August 29, 2015 14:10
Show Gist options
  • Save nadiaholmquist/0e7c036ee309771e4f28 to your computer and use it in GitHub Desktop.
Save nadiaholmquist/0e7c036ee309771e4f28 to your computer and use it in GitHub Desktop.
Terminal color test script
#!/bin/bash
echo -e "\n" "\e[48;5;"{0..7}"m " "\e[0m\n" \
"\e[48;5;"{8..15}"m " "\e[0m" \
"\e[11C" "\e[48;5;"{232..255}"m " "\e[0m\n"
for i in {0..30..6}; do
echo -n " "
for j in {0..180..36}; do
for k in {0..5}; do
echo -en "\e[48;5;$((16+$i+$j+$k))m "
[[ $k -eq 5 ]] && echo -en "\e[0m "
done
done
echo -e "\e[0m"
done
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment