-
-
Save ManzDev/ec446f9bdff2c3a7b87e5f3d74387547 to your computer and use it in GitHub Desktop.
Deal with it (Linux terminal edition)
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 | |
# Detect terminal width | |
columns=$(stty -a <`tty` | grep -Po '(?<=columns )\d+') | |
if test $columns -lt 90 | |
then | |
echo Your console should be larger than 90 chars width. | |
exit | |
fi | |
BLANK="\n" | |
GLASS=" /sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssso\n ·····hNNNNNNNNNNNNNMMMMMNddmMMdddNMMMMMMMMMMMMMMMMMMMMMMMMMMMmddNMMdddMMMMMMMMMMMMMMMMM\n/MMMMM: ·MMMMMs +MM- dMMMMMMMMMMMMMMMMMMMMMMMMMMM+ sMM· NMMMMMMMMMMMMMMMM\n·:::::· ::/MMmhho::yhh/::mMMMMMMMMMMMMMMMM/::::+MMmhh+::hhh::+MMMMMMMMMMMo::\n ·ssdMMh++sss+++sssNMMMMMMMMMMmhh· .ssdMMy++NMMo+sMMMMMMMMhss- \n +MMMMM- dMM- dMMMMMMMMMMo sMMMMMMMMMMMMMMMMMMM/ \n ··oMMNNNMMMNNNMMMMMMMMo·· ··················· \n .///////////////////. \n" | |
TEXT=" _____ ______ _ __ _______ _______ _ _ _____ _______ \n | __ \| ____| /\ | | \ \ / /_ _|__ __| | | | |_ _|__ __|\n | | | | |__ / \ | | \ \ /\ / / | | | | | |__| | | | | | \n | | | | __| / /\ \ | | \ \/ \/ / | | | | | __ | | | | | \n | |__| | |____ / ____ \| |____ \ /\ / _| |_ | | | | | | _| |_ | | \n |_____/|______/_/ \_\______| \/ \/ |_____| |_| |_| |_| |_____| |_| \n" | |
# Cursor OFF | |
echo "\033[?25l"; | |
# Move glasses | |
for i in `seq 1 8` | |
do | |
clear | |
for j in `seq 1 $i` | |
do | |
echo "$BLANK"; | |
done | |
echo "$GLASS"; | |
sleep 0.4 | |
done | |
sleep 1 | |
echo "$TEXT" | |
echo "$BLANK" | |
# Cursor ON | |
echo "\033[?25h"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Preview: https://twitter.com/Manz/status/824944902001786881