interface AsyncPty
source · line 8public
public interface AsyncPty : AsyncByteStream, AsyncCloseable
- Supertype
AsyncByteStream - Supertype
AsyncCloseable - Inherited
suspend fun flush(): Unit· AsyncByteSink - Inherited
suspend fun readInto(buffer: NativeByteBuffer, count: Long): Long· AsyncByteSource - Inherited
suspend fun writeFrom(buffer: NativeByteBuffer, count: Long): Long· AsyncByteSink
An owned asynchronous pseudoterminal with a single merged child output stream.
function wait
source · line 13public
public suspend fun wait(): ExitStatus
Waits for the direct child. Keep reading concurrently to retain its terminal output.
function resize
source · line 10public
public suspend fun resize(columns: Long, rows: Long): Unit
Changes the terminal cell dimensions. May run while reading or writing.
parameter columns
source · line 10public
columns: Long
parameter rows
source · line 10public
rows: Long
function close
source · line 16public
public override suspend fun close(): Unit
- Overrides
close· AsyncCloseable
Ends the session and reaps its direct child, discarding unread output if necessary.