mirror of
https://github.com/rwxrob/dot
synced 2024-11-14 18:12:56 +00:00
20 lines
319 B
Bash
Executable File
20 lines
319 B
Bash
Executable File
#!/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
|