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

Method deleteChars

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

Source from the content-addressed store, hash-verified

2996 return t3 && (t3.insertCells(this._activeBuffer.x, e3.params[0] || 1, this._activeBuffer.getNullCell(this._eraseAttrData())), this._dirtyRowTracker.markDirty(this._activeBuffer.y)), true;
2997 }
2998 deleteChars(e3) {
2999 this._restrictCursor();
3000 const t3 = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y);
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()));

Callers 1

constructorMethod · 0.95

Calls 6

_restrictCursorMethod · 0.95
_eraseAttrDataMethod · 0.95
deleteCellsMethod · 0.80
getNullCellMethod · 0.80
getMethod · 0.65
markDirtyMethod · 0.45

Tested by

no test coverage detected