This commit is contained in:
ge
2023-03-21 02:48:44 +03:00
commit ed521e2e3c
9 changed files with 567 additions and 0 deletions

18
examples/spin Normal file
View File

@ -0,0 +1,18 @@
#!/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*"