diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-07 05:28:14 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-07 05:28:14 +0000 |
commit | f477851bb72e5b4c905c7b47253338c2ecb54032 (patch) | |
tree | bb8204403bd9dad6eecfe0878827c979ed7cd7a2 /ext/io/console/console.c | |
parent | 48ce4cb414be48be1a73d2530203469b3b98281c (diff) |
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
Diffstat (limited to 'ext/io/console/console.c')
-rw-r--r-- | ext/io/console/console.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 |