MCPcopy Index your code
hub / github.com/codeaashu/claude-code / deleteCells

Method deleteCells

src/server/web/public/terminal.js:4125–4132  ·  view source on GitHub ↗
(e3, t3, i3)

Source from the content-addressed store, hash-verified

4123 2 === this.getWidth(this.length - 1) && this.setCellFromCodepoint(this.length - 1, 0, 1, i3);
4124 }
4125 deleteCells(e3, t3, i3) {
4126 if (e3 %= this.length, t3 < this.length - e3) {
4127 const s3 = new r.CellData();
4128 for (let i4 = 0; i4 < this.length - e3 - t3; ++i4) this.setCell(e3 + i4, this.loadCell(e3 + t3 + i4, s3));
4129 for (let e4 = this.length - t3; e4 < this.length; ++e4) this.setCell(e4, i3);
4130 } else for (let t4 = e3; t4 < this.length; ++t4) this.setCell(t4, i3);
4131 e3 && 2 === this.getWidth(e3 - 1) && this.setCellFromCodepoint(e3 - 1, 0, 1, i3), 0 !== this.getWidth(e3) || this.hasContent(e3) || this.setCellFromCodepoint(e3, 0, 1, i3);
4132 }
4133 replaceCells(e3, t3, i3, s3 = false) {
4134 if (s3) for (e3 && 2 === this.getWidth(e3 - 1) && !this.isProtected(e3 - 1) && this.setCellFromCodepoint(e3 - 1, 0, 1, i3), t3 < this.length && 2 === this.getWidth(t3 - 1) && !this.isProtected(t3) && this.setCellFromCodepoint(t3, 0, 1, i3); e3 < t3 && e3 < this.length; ) this.isProtected(e3) || this.setCell(e3, i3), e3++;
4135 else for (e3 && 2 === this.getWidth(e3 - 1) && this.setCellFromCodepoint(e3 - 1, 0, 1, i3), t3 < this.length && 2 === this.getWidth(t3 - 1) && this.setCellFromCodepoint(t3, 0, 1, i3); e3 < t3 && e3 < this.length; ) this.setCell(e3++, i3);

Callers 3

deleteCharsMethod · 0.80
scrollLeftMethod · 0.80
deleteColumnsMethod · 0.80

Calls 5

setCellMethod · 0.95
loadCellMethod · 0.95
getWidthMethod · 0.95
setCellFromCodepointMethod · 0.95
hasContentMethod · 0.95

Tested by

no test coverage detected