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 interruptRead()

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

actual fun interruptRead()
actual fun interruptRead()
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 resize(columns: Int, rows: Int, width: Int, height: Int)

Resize the TTY.

actual fun resize(columns: Int, rows: Int, width: Int, height: Int)
actual fun resize(columns: Int, rows: Int, width: Int, height: Int)
Link copied to clipboard
expect fun sendFocusEvent(focused: Boolean)

Send a focus event to tty's callback.

actual fun sendFocusEvent(focused: Boolean)
actual fun sendFocusEvent(focused: Boolean)
Link copied to clipboard
expect fun sendKeyEvent()

Send a key event to tty's callback.

actual fun sendKeyEvent()
actual fun sendKeyEvent()
Link copied to clipboard
expect fun sendMouseEvent()

Send a mouse event to tty's callback.

actual fun sendMouseEvent()
actual fun sendMouseEvent()
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 written will be returned.

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