MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / shift

Method shift

restored-src/src/ink/output.ts:219–221  ·  view source on GitHub ↗

* Shift full-width rows within [top, bottom] by n. n > 0 = up. Mirrors * what DECSTBM + SU/SD does to the terminal. Paired with blit() to reuse * prevScreen content during pure scroll, avoiding full child re-render.

(top: number, bottom: number, n: number)

Source from the content-addressed store, hash-verified

217 * prevScreen content during pure scroll, avoiding full child re-render.
218 */
219 shift(top: number, bottom: number, n: number): void {
220 this.operations.push({ type: 'shift', top, bottom, n })
221 }
222
223 /**
224 * Clear a region by writing empty cells. Used when a node shrinks to

Callers 15

numberDiffLinesFunction · 0.45
processQueueFunction · 0.45
enqueueSdkEventFunction · 0.45
nextMethod · 0.45
allFunction · 0.45
addToInMemoryErrorLogFunction · 0.45
parseSimpleCommandFunction · 0.45
parseExpansionRestFunction · 0.45
emitFunction · 0.45
renderNodeToOutputFunction · 0.45
focusMethod · 0.45
spawnFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected