diff --git a/bin/omarchy-provision-owner b/bin/omarchy-provision-owner index ac4b90c1..c27de22c 100755 --- a/bin/omarchy-provision-owner +++ b/bin/omarchy-provision-owner @@ -141,7 +141,8 @@ say() { notice() { clear_logo echo - gum spin --spinner "pulse" --title "$1" -- sleep "${2:-2}" + printf '%*s\033[32m● \033[0m%s\n' "$PADDING_LEFT" '' "$1" + sleep "${2:-2}" echo } diff --git a/bin/omarchy-show-done b/bin/omarchy-show-done index 60741076..d5d8ccde 100755 --- a/bin/omarchy-show-done +++ b/bin/omarchy-show-done @@ -1,6 +1,18 @@ #!/bin/bash -# omarchy:summary=Display a "Done!" message with a spinner and wait for user to press any key. +# omarchy:summary=Display a "Done!" message and wait for user to press any key. -echo -gum spin --spinner "globe" --title "Done! Press any key to close..." -- bash -c 'read -n 1 -s' +# The device node is there whether or not a terminal is behind it, so opening +# it is the only test that means anything. +: 2>/dev/null <>/dev/tty || exit 0 + +# gum 2.0 no longer lets a spun command read the terminal, so the wait has to +# happen here. Its own query replies are still queued on the tty; drop those or +# they answer the keypress for the user. +while read -rsn 1 -t 0.1 _ /dev/tty +read -rsn 1 /dev/tty