Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

how to overwrite last line of console in ubuntu rails

require 'time'

loop do
  time = Time.now.to_s + "
"
  print time
  $stdout.flush
  sleep 1
end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #overwrite #line #console #ubuntu #rails
ADD COMMENT
Topic
Name
5+2 =