instance method
IO#noecho
[T] () { (self) -> T } -> T
io.noecho {|io| }
ext/io/console/console.c
View on GitHub ↗
static VALUE
console_noecho(VALUE io)
{
return ttymode(io, rb_yield, io, set_noecho, NULL);
}
Yields self with disabling echo back.
Example
STDIN.noecho(&:gets)
will read and return a line without echo back.
You must require ‘io/console’ to use this method.