mirror of
https://github.com/mjsarfatti/beddu.git
synced 2025-06-26 08:58:02 +02:00
Fix cursor potentially disappearing
This commit is contained in:
parent
8a8850b566
commit
f53afe80c9
2 changed files with 2 additions and 2 deletions
|
@ -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=""
|
||||
|
|
|
@ -28,7 +28,7 @@ choose() {
|
|||
# Set prompt with default indicator
|
||||
prompt=$(
|
||||
pen -n blue "${_q:-?} "
|
||||
pen -n "${2}"
|
||||
pen -n "${2} "
|
||||
pen gray "[↑↓]"
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue