Advertisement
Guest User

more137

a guest
Nov 10th, 2016
94
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. for i in $(seq $#); do
  13. line=$(( $ln / 2 - $# / 2 ))
  14. size=$(( $(wc -c <<< $1) / 2))
  15. tput cm $(( $co / 2 - $size )) $(( $line + $i ))
  16. echo -ne "\033[31m$1"
  17. shift
  18. done
  19.  
  20. tput cm $ln $co
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement