Y
Hacker News
new
|
ask
|
show
|
jobs
by
fragmede
38 days ago
Which is how you do the fun spinny icons on the command line without having to invoke ncurses!
1 comments
freedomben
38 days ago
You can also just use a \r directly without a \n. For example:
spin='/-\|' while true; do i=$(( (i+1) % 4 )) printf "\r${spin:$i:1} Working..." sleep 0.1 done
link
freedomben
37 days ago
By the way yes, that is a subtle reference to the TOS computer, so it's best read in that voice :-)
link