3 ms·
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} Worki
by freedomben 6mo 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
- freedomben 6mo agoBy the way yes, that is a subtle reference to the TOS computer, so it's best read in that voice :-)