From f477851bb72e5b4c905c7b47253338c2ecb54032 Mon Sep 17 00:00:00 2001 From: knu Date: Tue, 7 Nov 2017 05:28:14 +0000 Subject: Add details on the min/time parameters to the rdoc git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/io/console/console.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ext/io') diff --git a/ext/io/console/console.c b/ext/io/console/console.c index e09213d383..dc989ccbc0 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -307,6 +307,15 @@ ttymode(VALUE io, VALUE (*func)(VALUE), void (*setter)(conmode *, void *), void * * will read and return a line without echo back and line editing. * + * The parameter +min+ specifies the minimum number of bytes that + * should be received when the read operation is performed. (default: + * 1) + * + * The paramter +time+ specifies the timeout in _seconds_, with a + * precision of 1/10 of a second. (default: 0) + * + * Refer to the manual page of termios for further details. + * * You must require 'io/console' to use this method. */ static VALUE @@ -324,6 +333,8 @@ console_raw(int argc, VALUE *argv, VALUE io) * * If the terminal mode needs to be back, use io.raw { ... }. * + * See IO#raw for details on the parameters. + * * You must require 'io/console' to use this method. */ static VALUE @@ -397,6 +408,8 @@ getc_call(VALUE io) * * Reads and returns a character in raw mode. * + * See IO#raw for details on the parameters. + * * You must require 'io/console' to use this method. */ static VALUE -- cgit v1.2.3