Skip to content

Instantly share code, notes, and snippets.

@iamazeem
Created December 14, 2017 07:24
Show Gist options
  • Save iamazeem/246d54b01381e44b1445bdb3bf0e3bdd to your computer and use it in GitHub Desktop.
Save iamazeem/246d54b01381e44b1445bdb3bf0e3bdd to your computer and use it in GitHub Desktop.
# Print progress on same line
(1..10).each do |i|
print "\rDownloaded: #{i} of 10"
sleep 1
end
puts
puts 'Rest of the logs here...'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment