MCPcopy Create free account
hub / github.com/Noumena-Network/code / shift

Method shift

src/ink/output.ts:260–262  ·  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

258 * prevScreen content during pure scroll, avoiding full child re-render.
259 */
260 shift(top: number, bottom: number, n: number): void {
261 this.operations.push({ type: 'shift', top, bottom, n })
262 }
263
264 /**
265 * Clear a region by writing empty cells. Used when a node shrinks to

Callers 15

extractAfterMarkerFunction · 0.80
startMethod · 0.80
numberDiffLinesFunction · 0.80
tryPushMethod · 0.80
pushLosslessMethod · 0.80
nextMethod · 0.80
nextEventMethod · 0.80
nextEventMethod · 0.80
constructorMethod · 0.80
nextMethod · 0.80
processQueueFunction · 0.80
enqueueSdkEventFunction · 0.80

Calls

no outgoing calls

Tested by 6

nextEventMethod · 0.64
nextEventMethod · 0.64
constructorMethod · 0.64
nextMethod · 0.64
readFunction · 0.64
makeBindingFunction · 0.64