Skip to content

Instantly share code, notes, and snippets.

@plainspooky
Created October 4, 2017 12:33
Show Gist options
  • Save plainspooky/0e4e5f1b075ff2d1a1057ea27e968090 to your computer and use it in GitHub Desktop.
Save plainspooky/0e4e5f1b075ff2d1a1057ea27e968090 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
for fundo in {0..7}; do
for frente in {0..7}; do
if (( frente == fundo )); then
let frente=7-frente
fi
tput setaf ${frente}
tput setab ${fundo}
printf "[ cor ]"
tput sgr0
done
printf "\n"
done
# vim: tabstop=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment