send

suspend fun send(bytes: ByteArray)

Writes and flushes terminal input bytes without adding a newline.

Parameters

bytes

Input owned by the caller; coordinate concurrent writers.

Throws

If the session has already closed.


suspend fun send(text: String)

Encodes text as UTF-8 and sends it without adding a newline.

Throws

If the session has already closed.