Created
September 23, 2019 12:35
-
-
Save ljcooke/fefd418afd5d36d6949d7353bc6f8182 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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