I would like to know to how to do in Ruby what I can do with system(\"clear\") in C. I wrote a program like
system(\"clear\")
puts \"amit\" system(\"clear\")
Try any of these two in your ruby file:
puts `clear`
or
puts "\e[H\e[2J"