Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
freedomben
3d ago
0 comments
Share
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
0 comments
default
newest
oldest
freedomben
OP
2d ago
By the way yes, that is a subtle reference to the TOS computer, so it's best read in that voice :-)
j
/
k
navigate · click thread line to collapse