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

Method insertCells

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

Source from the content-addressed store, hash-verified

4115 2097152 & s3 ? this._combined[e3] += (0, o.stringFromCodePoint)(t3) : 2097151 & s3 ? (this._combined[e3] = (0, o.stringFromCodePoint)(2097151 & s3) + (0, o.stringFromCodePoint)(t3), s3 &= -2097152, s3 |= 2097152) : s3 = t3 | 1 << 22, i3 && (s3 &= -12582913, s3 |= i3 << 22), this._data[3 * e3 + 0] = s3;
4116 }
4117 insertCells(e3, t3, i3) {
4118 if ((e3 %= this.length) && 2 === this.getWidth(e3 - 1) && this.setCellFromCodepoint(e3 - 1, 0, 1, i3), t3 < this.length - e3) {
4119 const s3 = new r.CellData();
4120 for (let i4 = this.length - e3 - t3 - 1; i4 >= 0; --i4) this.setCell(e3 + t3 + i4, this.loadCell(e3 + i4, s3));
4121 for (let s4 = 0; s4 < t3; ++s4) this.setCell(e3 + s4, i3);
4122 } else for (let t4 = e3; t4 < this.length; ++t4) this.setCell(t4, i3);
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();

Callers 4

printMethod · 0.80
insertCharsMethod · 0.80
scrollRightMethod · 0.80
insertColumnsMethod · 0.80

Calls 4

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

Tested by

no test coverage detected