2015-11-08 22:31:22 +01:00
|
|
|
^title Stdin Class
|
|
|
|
|
|
2015-12-30 06:56:44 +01:00
|
|
|
The standard input stream.
|
2015-11-08 22:31:22 +01:00
|
|
|
|
2015-12-30 06:56:44 +01:00
|
|
|
## Static Methods
|
2015-11-08 22:31:22 +01:00
|
|
|
|
2016-05-20 20:50:14 +02: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-30 06:56:44 +01: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.
|