pub fn conin() -> 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 will always return the the locked input console, will panic if it does not exit. Always call coninit() once and do not call conin() if it returns an error.