Ruby latest stable (v2_5_5) - 0 notes - Class: IO
raw(*args) public

Yields self within raw mode.


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 a read operation is performed. (default: 1)

The parameter 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.

Show source
Register or log in to add new notes.