pub fn conin_r() -> Result<Conin>
Expand description
Lock and return read side of the tty/console for the application.
This provides a Read object that is connected to /dev/tty (unix) or the console (windows). This will not read the piped standard input, but rather read from the TTY or console device, since reading asyncronized from piped input would rarely make sense. In other words, if you pipe standard output from another process, it won’t be reflected in the stream returned by this function, as this represents the TTY/console device, and not the piped standard input. This version returns an Error if the console was not setup properly and coninit() is optional with it.