bind

expect fun bind(stdinIsTty: Boolean = false, stdoutIsTty: Boolean = false, stderrIsTty: Boolean = false): TestTerminal

Initialize a TestTerminal instance. Only a single TestTerminal instance can be bound at a time, and only when a Tty is not also bound. Subsequent calls will throw an exception until TestTerminal.close is called.

Parameters

stdinIsTty

Whether the standard input stream is connected to the TTY.

stdoutIsTty

Whether the standard output stream is connected to the TTY.

stderrIsTty

Whether the standard error stream is connected to the TTY.

Throws

If an error occurred creating the PTY.

If another instance is already bound.

actual fun bind(stdinIsTty: Boolean, stdoutIsTty: Boolean, stderrIsTty: Boolean): TestTerminal
actual fun bind(stdinIsTty: Boolean, stdoutIsTty: Boolean, stderrIsTty: Boolean): TestTerminal