2015-11-08 13:31:22 -08:00
|
|
|
^title Stdin Class
|
|
|
|
|
|
2015-12-29 21:56:44 -08:00
|
|
|
The standard input stream.
|
2015-11-08 13:31:22 -08:00
|
|
|
|
2015-12-29 21:56:44 -08:00
|
|
|
## Static Methods
|
2015-11-08 13:31:22 -08:00
|
|
|
|
2016-05-20 11:50:14 -07:00
|
|
|
### **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.
|
|
|
|
|
|
2015-12-29 21:56:44 -08:00
|
|
|
### **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.
|