setCallback

expect fun setCallback(callback: Tty.Callback?)

Set or clear the callback used for reporting events about the terminal using platform-specific integration. The callback may be invoked on any thread and must never throw an exception. On Windows the callback will only be invoked during calls to read or readWithTimeout.

actual fun setCallback(callback: Tty.Callback?)
actual fun setCallback(callback: Tty.Callback?)