Skip to content

Commit

Permalink
reset cursor whenever exiting from spin
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Aug 19, 2017
1 parent f0c5cdf commit c5865a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions slib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ cleanup () {
if [ ! -z "$allpids" ]; then
for pid in $allpids; do
kill "$pid" 1>/dev/null 2>&1
tput rc
tput cnorm
done
fi
}
Expand Down Expand Up @@ -255,6 +257,7 @@ spinner () {
fi
done
done
tput rc
tput cnorm
return 0
}
Expand Down Expand Up @@ -327,6 +330,7 @@ run_ok () {
echo "Made it here...why?" >> ${RUN_LOG}
kill $spinpid 2>/dev/null
rm -rf ${SPINNER_DONEFILE} 2>/dev/null 2>&1
tput rc
tput cnorm
fi
# Log what we were supposed to be running
Expand Down

0 comments on commit c5865a4

Please sign in to comment.