mirror of
https://github.com/mjsarfatti/beddu.git
synced 2025-06-26 17:08:01 +02:00
Release test-rel
This commit is contained in:
parent
05f318b0f2
commit
4334716ff3
1 changed files with 6 additions and 6 deletions
8
dist/beddu.sh
vendored
8
dist/beddu.sh
vendored
|
@ -4,8 +4,8 @@
|
||||||
# beddu.sh - A lightweight bash framework for interactive scripts and pretty output
|
# beddu.sh - A lightweight bash framework for interactive scripts and pretty output
|
||||||
# https://github.com/mjsarfatti/beddu
|
# https://github.com/mjsarfatti/beddu
|
||||||
#
|
#
|
||||||
# Version: v0.0.5
|
# Version: test-rel
|
||||||
# Generated on: Sun May 11 13:37:32 CEST 2025
|
# Generated on: Sun May 11 14:05:34 CEST 2025
|
||||||
|
|
||||||
readonly _q='?'
|
readonly _q='?'
|
||||||
readonly _a='❯'
|
readonly _a='❯'
|
||||||
|
@ -136,7 +136,7 @@ spin() {
|
||||||
fi
|
fi
|
||||||
(
|
(
|
||||||
hide_cursor
|
hide_cursor
|
||||||
trap "show_cursor; exit 0" USR1
|
trap "exit 0" USR1
|
||||||
pen -n cyan "${spinner:0:1} "
|
pen -n cyan "${spinner:0:1} "
|
||||||
pen "${message[@]}"
|
pen "${message[@]}"
|
||||||
while true; do
|
while true; do
|
||||||
|
@ -160,10 +160,10 @@ spop() {
|
||||||
sleep "$_frame_duration"
|
sleep "$_frame_duration"
|
||||||
if ps -p "${_spinner_pid}" >/dev/null 2>&1; then
|
if ps -p "${_spinner_pid}" >/dev/null 2>&1; then
|
||||||
kill "${_spinner_pid}" 2>/dev/null
|
kill "${_spinner_pid}" 2>/dev/null
|
||||||
|
fi
|
||||||
if [[ "$keep_cursor_hidden" == false ]]; then
|
if [[ "$keep_cursor_hidden" == false ]]; then
|
||||||
show_cursor
|
show_cursor
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
_spinner_pid=""
|
_spinner_pid=""
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue