PlatformIO

expect object PlatformIO(source)

Provides low-level input and output operations for the terminal.

actual object PlatformIO(source)

Provides low-level input and output operations for the terminal.

Functions

Link copied to clipboard
expect fun awaitInput(timeoutMs: Int): Boolean

Waits for input to become available on stdin.

actual fun awaitInput(timeoutMs: Int): Boolean

Waits for input to become available on stdin.

Link copied to clipboard
expect fun flush()

Flushes the standard output buffer.

actual fun flush()

Flushes the standard output buffer.

Link copied to clipboard
expect fun readBytes(buffer: ByteArray, maxLen: Int): Int

Reads up to maxLen bytes into the provided buffer.

actual fun readBytes(buffer: ByteArray, maxLen: Int): Int

Reads up to maxLen bytes into the provided buffer.

Link copied to clipboard
expect fun writeString(text: String)

Writes the provided text to the standard output.

actual fun writeString(text: String)

Writes the provided text to the standard output.