instance method
IO#echo?
() -> bool
io.echo? → true or false
ext/io/console/console.c
View on GitHub ↗
static VALUE
console_echo_p(VALUE io)
{
conmode t;
int fd = GetReadFD(io);
if (!getattr(fd, &t)) sys_fail(io);
return echo_p(&t) ? Qtrue : Qfalse;
}
Returns true if echo back is enabled.
You must require ‘io/console’ to use this method.