TerminalTextRangeCopy
Worker-confined, reusable text-only copy of a bounded absolute row range.
Only primitive copying occurs inside the reader callback. Arrays are borrowed until the next read; only rows times columns cells are active. Every active code/flag entry is overwritten, so spare capacity needs no clearing. Cluster references are meaningful only for cells with the CLUSTER flag and a nonzero reference.
Bounds and cancellation have the same meaning as TerminalRenderRangeCopy. Failed or empty reads leave rows zero; partially copied arrays must not be consumed.
Properties
Source buffer for the completed batch.
Primitive cluster payload, valid only through references in active cluster cells.
Packed cluster offset (high 32 bits) and length (low 32 bits).
Source content generation for the completed batch.
First row of the requested/retained intersection.
Source history identity/layout generation for the completed batch.
Inclusive last copied row, or less than firstAbsoluteRow for an empty read.
Source generations for active rows.
Whether each active physical row continues into the next.
Functions
Copies one retained intersection, at most maxRows rows and maxCells cells, except that a single row wider than the cell budget is allowed. Returns whether a complete nonempty batch was copied. checkCancelled must not suspend or block.