Possible duplicate:How to clean terminal in Ruby?
How to clear the terminal screen in ruby?
puts "hello, what your name?" input = gets.chomp <<clearscreen>> puts "nice to meet you, #{input}"
Not sure what you are asking, but there are different ways to clear irb / terminal in this post: How to clear IRB console?
Intermediate is
To clear the screen, simply do
puts "\e[H\e[2J"