tryBind

expect fun tryBind(): Tty?

Initialize a Tty instance to the standard input, output, and error streams for this application. Only a single Tty instance can be bound at a time. Subsequent calls will throw an exception until Tty.close is called. Returns null if no TTY is available for this process.

Throws

If an error occurred binding to the TTY.

If another instance is already bound.

actual fun tryBind(): Tty?
actual fun tryBind(): Tty?