Skip to content

Instantly share code, notes, and snippets.

@somenugget
Created July 20, 2018 06:34
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 somenugget/09230a6c758b2f8c435e879cf97bb141 to your computer and use it in GitHub Desktop.
Save somenugget/09230a6c758b2f8c435e879cf97bb141 to your computer and use it in GitHub Desktop.
Replace last console output
require 'time'
loop do
time = Time.now.to_s + "\r"
print time
$stdout.flush
sleep 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment