TestTty

expect class TestTty : AutoCloseable
actual class TestTty : AutoCloseable
actual class TestTty : AutoCloseable

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard
expect val tty: Tty
actual val tty: Tty
actual val tty: Tty

Functions

Link copied to clipboard
expect open override fun close()
actual open override fun close()
actual open override fun close()
Link copied to clipboard
expect fun focusEvent(focused: Boolean)

Send a focus event to tty's callback.

actual fun focusEvent(focused: Boolean)
actual fun focusEvent(focused: Boolean)
Link copied to clipboard
expect fun interruptRead()

Signal blocking calls to read to wake up and return 0.

actual fun interruptRead()
actual fun interruptRead()
Link copied to clipboard
expect fun keyEvent()

Send a key event to tty's callback.

actual fun keyEvent()
actual fun keyEvent()
Link copied to clipboard
expect fun mouseEvent()

Send a mouse event to tty's callback.

actual fun mouseEvent()
actual fun mouseEvent()
Link copied to clipboard
expect fun read(buffer: ByteArray, offset: Int, count: Int): Int

Read up to count bytes into buffer at offset from the PTY. The number of bytes read will be returned.

actual fun read(buffer: ByteArray, offset: Int, count: Int): Int
actual fun read(buffer: ByteArray, offset: Int, count: Int): Int
Link copied to clipboard
expect fun resizeEvent(columns: Int, rows: Int, width: Int, height: Int)

Send a resize event to tty's callback.

actual fun resizeEvent(columns: Int, rows: Int, width: Int, height: Int)
actual fun resizeEvent(columns: Int, rows: Int, width: Int, height: Int)
Link copied to clipboard
expect fun write(buffer: ByteArray, offset: Int, count: Int): Int

Write up to count bytes into buffer at offset to the PTY. The number of bytes read will be returned.

actual fun write(buffer: ByteArray, offset: Int, count: Int): Int
actual fun write(buffer: ByteArray, offset: Int, count: Int): Int