TerminalGraphicsOutputParser
Optional synchronous parser boundary for externally decoded image payloads.
A session retains its ingress range and mutation admission while releasing its core lock around consumePendingGraphics. No parser operation may run concurrently or reenter the consumer. Ordinary accept retains its full-range sink-dispatch contract; hosts requiring PNG/zlib decoding use acceptUntilGraphics instead. Parsers returned by TerminalParsers implement this boundary.
Properties
Whether a completed image payload awaits consumePendingGraphics.
Functions
Feeds a single byte from the terminal host output stream to the parser.
Consumes through the first graphics command requiring external decoding. Other commands dispatch synchronously. A yielded command has not reached the sink; consume it before supplying further bytes, including an empty range.
Consumes the pending controls and the used prefix of exclusively owned staging. The consumer may compact staging in place. Neither controls nor bytes may escape this callback. Staging is released on return, including failure.
Signals the end of the input stream.