cara menimpa garis konsol terakhir di rel ubuntu

require 'time'

loop do
  time = Time.now.to_s + "\r"
  print time
  $stdout.flush
  sleep 1
end
Terrible Tapir