diff --git a/getcd.sh b/getcd.sh index 384bb09..66069d2 100755 --- a/getcd.sh +++ b/getcd.sh @@ -5,6 +5,13 @@ umask 000 # create files with all right for anyone shopt -s nullglob # expand patterns which match no file to a null string shopt -s extdebug +function atExit +{ + echo -en "\033[?25h" # show cursor +} + +trap atExit EXIT + # -------------------------------------------------------------- # das Verzeichnis in dem dieses script liegt herausfinden scriptDir=${0%/*} @@ -359,7 +366,7 @@ test ${verbose} -ge 1 && echo "${ready}" # ---------------------------------------------------------------- # now do the ripping test ${verbose} -eq 1 && echo -n "${startRipMsg1}" -test ${verbose} -ge 2 && echo "${startRipMsg2}" +test ${verbose} -ge 2 && { echo "${startRipMsg2}"; echo -en "\033[?25l"; } i=0 while [ $i -lt ${#tTitle[@]} ] @@ -460,5 +467,6 @@ do i=$((i+1)) done +test ${verbose} -ge 2 && echo -en "\033[?25h" test ${verbose} -eq 1 && echo "${ready}" # ----------------------------------------------------------------