Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
IO#cursor_up
(::int) -> self
io.cursor_up(n) → io
ext/io/console/console.c
View on GitHub ↗
static VALUE
console_cursor_up(VALUE io, VALUE val)
{
return console_move(io, -NUM2INT(val), 0);
}
Moves the cursor up n lines.
You must require ‘io/console’ to use this method.