Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # WTF ;)
- wtf()
- {
- tput cup $(($RANDOM % $1)) $(($RANDOM % $2))
- tput setaf $(($RANDOM % 8))
- echo -n $(($RANDOM % 2))
- }
- sig_int_trap()
- {
- tput sgr0
- tput cnorm
- exit 0
- }
- init()
- {
- trap sig_int_trap SIGINT
- tput civis
- }
- height=$(tput lines)
- width=$(tput cols)
- init && while true; do wtf $height $width; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement