Skip to content

Instantly share code, notes, and snippets.

@ManzDev
Created January 27, 2017 19:49
Show Gist options
  • Save ManzDev/ec446f9bdff2c3a7b87e5f3d74387547 to your computer and use it in GitHub Desktop.
Save ManzDev/ec446f9bdff2c3a7b87e5f3d74387547 to your computer and use it in GitHub Desktop.
Deal with it (Linux terminal edition)
#!/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";
@ManzDev
Copy link
Author

ManzDev commented Jan 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment