From 2bd066c2438e629e7d289519dd54af1a51effa10 Mon Sep 17 00:00:00 2001 From: Rezart Qelibari Date: Wed, 20 Apr 2022 00:58:57 +0200 Subject: [PATCH] Show cursor after script has run --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 3544d05..7d6c61e 100755 --- a/install.sh +++ b/install.sh @@ -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