hide cursor

This commit is contained in:
Florian Schlegel 2020-08-20 00:38:37 +02:00
parent d0662535ae
commit 996faec6f8
1 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,14 @@ if [ -z "$(which jq)" ]; then
exit 1
fi
trap do_exit INT
do_exit() {
tput cvvis # unhide cursor
exit 0
}
tput civis # hide cursor
CHCHPOSITION=0
while true; do
@ -335,3 +343,5 @@ while true; do
fi
sleep 10
done
exit 1