copyViewport
Copies projected shell decorations for a visible viewport.
Existing values in promptStarts, commandStarts, commandEnds, commandRecordIds, and commandLifecycleStates are overwritten for exactly rowCount rows starting at destinationOffset.
Parameters
stable line identities for visible viewport rows.
number of viewport rows to copy.
destination flags for prompt-start rows.
destination flags for command-output start rows.
destination flags for command-output end rows.
destination command-record ids for rows owned by a projected prompt or command range.
destination lifecycle states for rows with a projected command record.
optional destination flags for failed-command output rows.
first destination index in all destination arrays.
Throws
if the offset, row count, or any array slice is invalid, before clearing or writing any destination. Zero-row slices may start at the end of every destination array.