rwxrob-dot/scripts/banner
Rob Muhlestein 2ea0289e9f Rebase
2022-02-09 02:29:05 -05:00

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