Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
IO::generic_readable#getch
io.getch(min: nil, time: nil, intr: nil) → char
ext/io/console/console.c
View on GitHub ↗
static VALUE
io_getch(int argc, VALUE *argv, VALUE io)
{
return rb_funcallv(io, id_getc, argc, argv);
}
See IO#getch.