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

Method replaceCells

src/server/web/public/terminal.js:4133–4136  ·  view source on GitHub ↗
(e3, t3, i3, s3 = false)

Source from the content-addressed store, hash-verified

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);
4136 }
4137 resize(e3, t3) {
4138 if (e3 === this.length) return 4 * this._data.length * 2 < this._data.buffer.byteLength;
4139 const i3 = 3 * e3;

Callers 3

_eraseInBufferLineMethod · 0.80
eraseCharsMethod · 0.80

Calls 4

getWidthMethod · 0.95
isProtectedMethod · 0.95
setCellFromCodepointMethod · 0.95
setCellMethod · 0.95

Tested by

no test coverage detected