Command to clean the screen in IRB? (like when pressing "Ctrl+L")

Hi, I expect there is a command to clean the screen during an IRB
session (in
fact you can press Ctrl+L to do it, but I’m lookinf for a Ruby command).
What
is that command?

thanks a lot.

El Lunes, 1 de Septiembre de 2008, Iñaki Baz C. escribió:

Hi, I expect there is a command to clean the screen during an IRB session
(in fact you can press Ctrl+L to do it, but I’m lookinf for a Ruby
command). What is that command?

Well, after looking I’ve found that there is not such command, but some
workarounds:

print “\e[2J\e[f”

or:

system(“clear”)