r/linux_programming • • Aug 15 '17
Bash Fidget Spinner - You're Welcome
https://gist.github.com/benyanke/6923e4c3aff9197e079826e0b17a09d3
39
Upvotes
r/linux_programming • • Aug 15 '17
View all comments
Show parent comment
2
u/[deleted] Aug 16 '17
Yeah, it literally just echos those characters to the screen, in quick succession, via the gnu read command.
From there, the read com and allows it to detect when you've pushed a key, and speed it up again, like a spinner. If you don't push any keys, the speed naturally decays, like a spinner.
Just a fun little project to get comfortable with bash cursor settings, doesn't really do anything.