Return the next line available from the console, or null when there is nothing available. The value returned is a duplicate of the buffer content (it has .dup applied).
Retreive a line of text from the console and map it to the given argument. The input is sliced, not copied, so use .dup appropriately. Each line ending is removed unless parameter raw is set to true.
Returns the configured source
Divert input to an alternate source.
Is this device redirected?
Set redirection state to the provided boolean.
Return the associated stream.
Model console input as a buffer. Note that we read UTF8 only.