Scoop API

scoop:scoop.asyncio:0.1.0

AsyncTty

interface AsyncTty

source · line 42
public
public interface AsyncTty : AsyncByteSink, AsyncCloseable

An owned asynchronous terminal handle with byte output, input/resize events, and raw-mode control.

function size

source · line 59
public
public suspend fun size(): TtySize

Queries current terminal cell and pixel dimensions.

function enableRawMode

source · line 67
public
public suspend fun enableRawMode(): Unit

Enables raw terminal input under the handle's mode-ownership rules.

property isClosed

source · line 46
public
public val isClosed: Boolean

get: public read-only

Whether terminal cleanup has completed.

function isRawMode

source · line 63
public
public suspend fun isRawMode(): Boolean

Reports whether raw input mode is active for this terminal.

function disableRawMode

source · line 71
public
public suspend fun disableRawMode(): Unit

Restores the terminal mode saved when raw input was enabled.