Skip to content

Instantly share code, notes, and snippets.

@ljcooke
Created September 23, 2019 12:35
Show Gist options
  • Save ljcooke/fefd418afd5d36d6949d7353bc6f8182 to your computer and use it in GitHub Desktop.
Save ljcooke/fefd418afd5d36d6949d7353bc6f8182 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -o errexit
set -o nounset
tile() {
printf "%s\033[1B\033[3D%s\033[1B\033[3D%s\033[2A" '╲┴╱' '┤╳├' '╱┬╲'
}
printf "\033[2J\033[H"
i=0
i_end=$(($(tput lines) / 3 - 1))
while [ "$i" -le "$i_end" ]; do
j=0
j_end=$(($(tput cols) / 3 - 1))
while [ "$j" -le "$j_end" ]; do
tile
j=$((j+1))
done
printf "\n\n\n"
i=$((i+1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment