Skip to content

Instantly share code, notes, and snippets.

@tkfm-yamaguchi
Created June 26, 2012 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkfm-yamaguchi/2994025 to your computer and use it in GitHub Desktop.
Save tkfm-yamaguchi/2994025 to your computer and use it in GitHub Desktop.
Bash's active wating prompt
# dot swings...
STDOUT.sync = true
print "Take a rest for about 10s ... zzz ..."
sleep(1)
3.times do
print "\033[2D\033[0K"
sleep(1)
print "."
sleep(1)
print "."
sleep(1)
end
print "\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment