MCPcopy Create free account
hub / github.com/codeaashu/claude-code / clear

Method clear

src/server/web/public/terminal.js:7944–7946  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7942 }
7943 constructor(e3, t3, i3) {
7944 if (this._usedPixels = 0, this._glyphs = [], this.version = 0, this.currentRow = { x: 0, y: 0, height: 0 }, this.fixedRows = [], i3) for (const e4 of i3) this._glyphs.push(...e4.glyphs), this._usedPixels += e4._usedPixels;
7945 this.canvas = p(e3, t3, t3), this.ctx = (0, o.throwIfFalsy)(this.canvas.getContext("2d", { alpha: true }));
7946 }
7947 clear() {
7948 this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height), this.currentRow.x = 0, this.currentRow.y = 0, this.currentRow.height = 0, this.fixedRows.length = 0, this.version++;
7949 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected