tui.sh/examples/spin
2023-03-21 02:48:44 +03:00

19 lines
363 B
Bash

#!/bin/sh
. ../tui.sh
tui_spin \
-t 'Sleeping...' \
-m '\033[32;1m✓ Waked up!\033[0m' \
-- sleep 3
tui_spin -r \
-t 'Ping Google...' \
-m '\033[32;1m✓ Ping Google OK!\033[0m' \
-- ping -c 3 google.com
tui_spin \
-t 'Search *bash* files...' \
-m '\033[32;1m✓ Search *bash* files OK!\033[0m' \
-- find ~ -name "*bash*"