Fix cursor potentially disappearing

This commit is contained in:
Manuele Sarfatti 2025-05-11 16:11:17 +02:00
parent 8a8850b566
commit f53afe80c9
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ source "$SCRIPT_DIR/../00.utils/movements.sh"
source "$SCRIPT_DIR/../01.core/pen.sh"
# Make sure the cursor is shown and the spinner stopped if the script exits abnormally
trap spop EXIT INT TERM
trap "spop; show_cursor" EXIT INT TERM
# Module state variables
_spinner_pid=""

View file

@ -28,7 +28,7 @@ choose() {
# Set prompt with default indicator
prompt=$(
pen -n blue "${_q:-?} "
pen -n "${2}"
pen -n "${2} "
pen gray "[↑↓]"
)