Skip to main content

Module stdio

Module stdio 

Source
Expand description

Injectable stream abstractions for the CLIs.

Only stdin needs TTY awareness (interactive prompts and pipe detection), so output streams are plain std::io::Write trait objects.

Structs§

ReaderInput
Wraps any reader with an explicit TTY flag. Useful for tests and for embedders that manage their own stdio.
StdinStream
The process stdin, with real TTY detection.

Traits§

InputStream
A readable input stream that knows whether it is an interactive terminal.