1
0
forked from Mirror/wren
Files
wren/doc/site/modules/io/stdin.markdown
2016-05-20 15:19:18 -07:00

687 B

^title Stdin Class

The standard input stream.

Static Methods

isRaw

Returns true if stdin is in raw mode. When in raw mode, input is not echoed or buffered, and all characters, even non-printing and control characters go into stdin.

Defaults to false.

isRaw=(value)

Sets raw mode on or off.

readByte()

Reads one byte of input from stdin. Blocks the current fiber until a byte has been received.

Returns the byte value as a number or null if stdin is closed.

readLine()

Reads one line of input from stdin. Blocks the current fiber until a full line of input has been received.

Returns the string of input or null if stdin is closed.