cooked()
public
Yields self within cooked mode.
STDIN.cooked(&:gets)
will read and return a line with echo back and
line editing.
You must require ‘io/console’ to use this method.
static VALUE
console_cooked(VALUE io)
{
return ttymode(io, rb_yield, set_cookedmode, NULL);
}