instance method
IO#clear_screen
() -> self
io.clear_screen → io
ext/io/console/console.c
View on GitHub ↗
static VALUE
console_clear_screen(VALUE io)
{
console_erase_screen(io, INT2FIX(2));
console_goto(io, INT2FIX(0), INT2FIX(0));
return io;
}
Clears the entire screen and moves the cursor top-left corner.
You must require ‘io/console’ to use this method.