interface AsyncTty
source · line 42public
public interface AsyncTty : AsyncByteSink, AsyncCloseable
- Supertype
AsyncByteSink - Supertype
AsyncCloseable - Inherited
suspend fun close(): Unit· AsyncCloseable - Inherited
suspend fun flush(): Unit· AsyncByteSink - Inherited
suspend fun writeFrom(buffer: NativeByteBuffer, count: Long): Long· AsyncByteSink
An owned asynchronous terminal handle with byte output, input/resize events, and raw-mode control.
function size
source · line 59public
public suspend fun size(): TtySize
Queries current terminal cell and pixel dimensions.
function enableRawMode
source · line 67public
public suspend fun enableRawMode(): Unit
Enables raw terminal input under the handle's mode-ownership rules.
property isClosed
source · line 46public
public val isClosed: Boolean
get: public read-only
Whether terminal cleanup has completed.
function receive
source · line 51public
public suspend fun receive(buffer: NativeByteBuffer, count: Long, timeout: Duration? = None): TtyRead
Waits for input, resize, EOF, or an optional timeout, appending bytes to the writable buffer region.
parameter timeout
source · line 54public
timeout: Duration? = None
parameter count
source · line 53public
count: Long
parameter buffer
source · line 52public
buffer: NativeByteBuffer
function isRawMode
source · line 63public
public suspend fun isRawMode(): Boolean
Reports whether raw input mode is active for this terminal.
function disableRawMode
source · line 71public
public suspend fun disableRawMode(): Unit
Restores the terminal mode saved when raw input was enabled.