#!/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