MCPcopy
hub / github.com/codeaashu/claude-code / shift

Method shift

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.80
processQueueFunction · 0.80
enqueueSdkEventFunction · 0.80
nextMethod · 0.80
allFunction · 0.80
addToInMemoryErrorLogFunction · 0.80
parseSimpleCommandFunction · 0.80
parseExpansionRestFunction · 0.80
emitFunction · 0.80
renderNodeToOutputFunction · 0.80
focusMethod · 0.80
spawnFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected