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
puts \"amit\"
system(\"clear\")
You can use system("clear") or system("cls") according to the terminal you are going to print.
system("cls").system("clear").Or you can use a better way. Check this example.
count = 0
until count == 10
system("cls") || system("clear")
print count
count += 1
sleep 1
end