Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. RTFM="
  4. PLEASE READ THE FUCKING MANUAL
  5.  
  6. NO, REALLY,
  7. ███████▄▄ ██████████ ██████████ ██▄▄ ▄▄██
  8. ██ ▀▀█▄ ██ ██ ██▀██▄ ▄██▀██
  9. ██ ██ ██ ██ ██ ▀██▄██▀ ██
  10. ██ ▄██▀ ██ ██ ██ ▀█▀ ██
  11. ████████▀ ██ ████████ ██ ██
  12. ██ ▀█▄ ██ ██ ██ ██
  13. ██ ▀█▄ ██ ██ ██ ██
  14. ██ ▀█▄ ██ ██ ██ ██
  15. ██ ██ ██ ██ ██ ██
  16.  
  17. THANK YOU
  18. "
  19.  
  20. function ctrl_c() {
  21. clear
  22. echo "$RTFM"
  23. exit
  24. }
  25. trap ctrl_c INT
  26.  
  27. COLOR=90
  28. COLUMN=0
  29.  
  30. clear
  31. while true; do
  32. echo -ne "\e[1;1H\e[${COLOR}m"
  33.  
  34. echo "$RTFM" | sed -e 's/^\(.*\)/\1\1/' -e 's/.\{'$COLUMN'\}//' -e 's/\(.\{80\}\).*/\1/'
  35.  
  36. echo -ne "\e[0m"
  37.  
  38. COLOR=$(( ($COLOR - 89) % 9 + 90))
  39. COLUMN=$(( ($COLUMN + 1) % 80))
  40. sleep 0.1
  41. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement