Created
October 6, 2015 14:46
-
-
Save socram8888/6552dff34271a87ab670 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/bash | |
RTFM=" | |
PLEASE READ THE FUCKING MANUAL | |
NO, REALLY, | |
███████▄▄ ██████████ ██████████ ██▄▄ ▄▄██ | |
██ ▀▀█▄ ██ ██ ██▀██▄ ▄██▀██ | |
██ ██ ██ ██ ██ ▀██▄██▀ ██ | |
██ ▄██▀ ██ ██ ██ ▀█▀ ██ | |
████████▀ ██ ████████ ██ ██ | |
██ ▀█▄ ██ ██ ██ ██ | |
██ ▀█▄ ██ ██ ██ ██ | |
██ ▀█▄ ██ ██ ██ ██ | |
██ ██ ██ ██ ██ ██ | |
THANK YOU | |
" | |
function ctrl_c() { | |
clear | |
echo "$RTFM" | |
exit | |
} | |
trap ctrl_c INT | |
COLOR=90 | |
COLUMN=0 | |
clear | |
while true; do | |
echo -ne "\e[1;1H\e[${COLOR}m" | |
echo "$RTFM" | sed -e 's/^\(.*\)/\1\1/' -e 's/.\{'$COLUMN'\}//' -e 's/\(.\{80\}\).*/\1/' | |
echo -ne "\e[0m" | |
COLOR=$(( ($COLOR - 89) % 9 + 90)) | |
COLUMN=$(( ($COLUMN + 1) % 80)) | |
sleep 0.1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment