29 lines
384 B
Bash
29 lines
384 B
Bash
#!/usr/bin/env bash
|
|
|
|
width="$(tput cols)"
|
|
width=$((width / 4))
|
|
|
|
printf "$width"
|
|
|
|
printf "\e[32m\n"
|
|
while :
|
|
do
|
|
for ((i=1;i<=width;i++))
|
|
do
|
|
((r = $RANDOM % 2))
|
|
if (($RANDOM % 5 == 1))
|
|
then
|
|
if (($RANDOM % 4 == 1))
|
|
then
|
|
v+="\e[1m $r "
|
|
else
|
|
v+="\e[2m $r "
|
|
fi
|
|
else
|
|
v+=" "
|
|
fi
|
|
done
|
|
printf "$v\n"
|
|
v=""
|
|
done
|
|
;; |