Skip to content

Instantly share code, notes, and snippets.

@JaisonBrooks
Created December 4, 2014 21:48
Show Gist options
  • Save JaisonBrooks/ff449146c14d5ed48608 to your computer and use it in GitHub Desktop.
Save JaisonBrooks/ff449146c14d5ed48608 to your computer and use it in GitHub Desktop.
change_already_printed_line.rb
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