[ruby/io-console] Refined getch warnings
https://github.com/ruby/io-console/commit/f84e6abcce
This commit is contained in:
parent
37259e878f
commit
71428ac264
@ -544,7 +544,7 @@ console_getch(int argc, VALUE *argv, VALUE io)
|
|||||||
if (optp->vtime) break;
|
if (optp->vtime) break;
|
||||||
/* fallthru */
|
/* fallthru */
|
||||||
default:
|
default:
|
||||||
rb_warning("min option ignored");
|
rb_warning("min option larger than 1 ignored");
|
||||||
}
|
}
|
||||||
if (optp->intr) {
|
if (optp->intr) {
|
||||||
# ifndef HAVE_RB_IO_WAIT
|
# ifndef HAVE_RB_IO_WAIT
|
||||||
@ -556,8 +556,8 @@ console_getch(int argc, VALUE *argv, VALUE io)
|
|||||||
if (result == Qfalse) return Qnil;
|
if (result == Qfalse) return Qnil;
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
else {
|
else if (optp->vtime) {
|
||||||
rb_warning("vtime option ignored if intr flag is unset");
|
rb_warning("Non-zero vtime option ignored if intr flag is unset");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
len = (int)(VALUE)rb_thread_call_without_gvl(nogvl_getch, wbuf, RUBY_UBF_IO, 0);
|
len = (int)(VALUE)rb_thread_call_without_gvl(nogvl_getch, wbuf, RUBY_UBF_IO, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user