Library stdio

To use this library in your code:

import io.stdio
Provides direct access to the platform's standard input, output, and error streams.
On host platforms, the host package provides closeable, terminal-aware versions of the same streams. Both packages access the same underlying platform streams.

Functions

Returns the standard error stream.
Writes go directly to the platform's standard error and do not pass through the print service. A write is synchronous and may block in the underlying platform operation. The stream cannot be closed.
On host platforms, use host.stderr when closing the stream or querying whether it is a terminal is required.

Returns the standard input stream.
On ESP32, input is supported when ESP-IDF's primary console is a UART or USB Serial/JTAG. Other console backends are unsupported.
The stream cannot be closed. It shares the platform input with other standard input APIs. If multiple readers or containers read concurrently, the first reader to consume available data receives it.
On host platforms, use host.stdin when closing the stream or querying whether it is a terminal is required.

Returns the standard output stream.
Writes go directly to the platform's standard output and do not pass through the print service. A write is synchronous and may block in the underlying platform operation. The stream cannot be closed.
On host platforms, use host.stdout when closing the stream or querying whether it is a terminal is required.