Advertisement
Guest User

uber1337

a guest
Nov 10th, 2016
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/local/bin/zsh
  2.  
  3. ln=$(tput li)
  4. co=$(tput co)
  5.  
  6. echo -e "\033[32m"
  7.  
  8. for i in $(seq 1 100); do
  9. echo -en "$(echo $RANDOM | xxd -b | sed 's/[^01]//g')"
  10. done
  11.  
  12. if [ ! -z $1 ]; then
  13. size=$(( $(wc -c <<< $1) / 2))
  14. tput cm $(( $co / 2 - $size )) $(( $ln / 2 ))
  15. echo -ne "\033[31m$1"
  16. tput cm $ln $co
  17. fi
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement