Skip to content

Instantly share code, notes, and snippets.

@socram8888
Created October 6, 2015 14:46
Show Gist options
  • Save socram8888/6552dff34271a87ab670 to your computer and use it in GitHub Desktop.
Save socram8888/6552dff34271a87ab670 to your computer and use it in GitHub Desktop.
#!/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