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

Method scrollUp

src/server/web/public/terminal.js:3003–3007  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

3001 return t3 && (t3.deleteCells(this._activeBuffer.x, e3.params[0] || 1, this._activeBuffer.getNullCell(this._eraseAttrData())), this._dirtyRowTracker.markDirty(this._activeBuffer.y)), true;
3002 }
3003 scrollUp(e3) {
3004 let t3 = e3.params[0] || 1;
3005 for (; t3--; ) this._activeBuffer.lines.splice(this._activeBuffer.ybase + this._activeBuffer.scrollTop, 1), this._activeBuffer.lines.splice(this._activeBuffer.ybase + this._activeBuffer.scrollBottom, 0, this._activeBuffer.getBlankLine(this._eraseAttrData()));
3006 return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop, this._activeBuffer.scrollBottom), true;
3007 }
3008 scrollDown(e3) {
3009 let t3 = e3.params[0] || 1;
3010 for (; t3--; ) this._activeBuffer.lines.splice(this._activeBuffer.ybase + this._activeBuffer.scrollBottom, 1), this._activeBuffer.lines.splice(this._activeBuffer.ybase + this._activeBuffer.scrollTop, 0, this._activeBuffer.getBlankLine(l.DEFAULT_ATTR_DATA));

Callers 1

constructorMethod · 0.95

Calls 4

_eraseAttrDataMethod · 0.95
spliceMethod · 0.80
getBlankLineMethod · 0.80
markRangeDirtyMethod · 0.45

Tested by

no test coverage detected