watchit hides cursor now
This commit is contained in:
parent
4cddd2ad4a
commit
272b158a02
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
printf "Beginning upgrade.\\n"
|
||||
|
||||
yay -Qyu
|
||||
pkill -RTMIN+8 i3blocks
|
||||
|
||||
printf "\\nUpgrade complete.\\nPress <Enter> to exit window.\\n\\n"
|
||||
read -r
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user