mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
319 B
Bash
20 lines
319 B
Bash
#!/usr/bin/env bash
|
|
|
|
clear=$'\033[2J'
|
|
top=$'\033[H'
|
|
|
|
trap "setterm --cursor on; echo ${clear}; exit; trap -- - SIGINT SIGTERM" SIGTERM SIGINT
|
|
|
|
what="$*"
|
|
if [ -z "${what}" ]; then
|
|
read -p "Text: " what
|
|
fi
|
|
|
|
echo "${clear}"
|
|
while true; do
|
|
echo "${top}"
|
|
figl <<<"$what" | lolcat
|
|
setterm --cursor off
|
|
sleep 2
|
|
done
|