watchit hides cursor now
This commit is contained in:
@ -1,8 +1,17 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
HOME=$(tput cup 0 0)
|
||||
ED=$(tput ed)
|
||||
EL=$(tput el)
|
||||
printf '%s%s' "$HOME" "$ED"
|
||||
|
||||
cleanup(){
|
||||
tput cnorm
|
||||
exit
|
||||
}
|
||||
trap cleanup INT
|
||||
|
||||
|
||||
tput civis
|
||||
while true
|
||||
do
|
||||
ROWS=$(tput lines)
|
||||
@ -14,3 +23,4 @@ do
|
||||
printf '%s%s' "$ED" "$HOME"
|
||||
sleep 0.2
|
||||
done
|
||||
tput cnorm
|
||||
|
Reference in New Issue
Block a user