accept

abstract fun accept(bytes: ByteArray, offset: Int = 0, length: Int = bytes.size)

Feeds a chunk of bytes from the terminal host output stream to the parser.

The parser processes the byte sequence, transitions its internal state machine, and dispatches recognized commands to the bound command sink.

Parameters

bytes

The byte array containing raw terminal output.

offset

The index of the first byte to process in bytes.

length

The number of bytes to process.