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.
17 lines
306 B
Plaintext
17 lines
306 B
Plaintext
3 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
clear=$'\033[2J'
|
||
|
top=$'\033[H'
|
||
|
|
||
|
trap "setterm --cursor on; stty echo; echo ${clear}; exit; trap -- - SIGINT SIGTERM" SIGTERM SIGINT
|
||
|
|
||
|
echo "${clear}"
|
||
|
while true; do
|
||
|
echo "${top}"
|
||
|
stty -echo
|
||
|
setterm --cursor off
|
||
|
echo -e "$@" | figl | lolcat
|
||
|
setterm --cursor off
|
||
|
sleep 2
|
||
|
done
|