Show cursor after script has run

This commit is contained in:
Rezart Qelibari
2022-04-20 00:58:57 +02:00
parent 08214f99aa
commit 2bd066c243

View File

@@ -86,7 +86,11 @@ function main() {
trap "stty $(stty -g)" INT TERM EXIT
stty -echo
fi
[ -t 1 ] && tput civis && export TERMINAL_CURSOR_HIDDEN=true
if [ -t 1 ]; then
trap "tput cnorm" INT TERM EXIT
tput civis
export TERMINAL_CURSOR_HIDDEN=true
fi
autoloadZShLib || return
checkPrerequisites || return
eval "`docopts -f -V - -h - : "$@" <<- USAGE