Keyboard.fromStdin constructor

Keyboard.fromStdin(
  1. [Stdin? stdin]
)

Creates a new keyboard instance that reads from the standard input stream.

Implementation

factory Keyboard.fromStdin([io.Stdin? stdin]) {
  return Keyboard.fromBuffer(BufferedKeys.fromStream(stdin ?? io.stdin));
}