bind

expect fun bind(): TestTty

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

Throws

If an error occurred creating the PTY.

If another instance is already bound.

actual fun bind(): TestTty
actual fun bind(): TestTty