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

Method handleResize

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

Source from the content-addressed store, hash-verified

6883 let i3 = 0;
6884 for (; i3 < this._vertices.attributesBuffers.length; i3++) this._vertices.count !== t3 ? this._vertices.attributesBuffers[i3] = new Float32Array(t3) : this._vertices.attributesBuffers[i3].fill(0);
6885 this._vertices.count = t3, i3 = 0;
6886 for (let t4 = 0; t4 < e3.rows; t4++) for (let s3 = 0; s3 < e3.cols; s3++) this._vertices.attributes[i3 + 9] = s3 / e3.cols, this._vertices.attributes[i3 + 10] = t4 / e3.rows, i3 += h;
6887 }
6888 handleResize() {
6889 const e3 = this._gl;
6890 e3.useProgram(this._program), e3.viewport(0, 0, e3.canvas.width, e3.canvas.height), e3.uniform2f(this._resolutionLocation, e3.canvas.width, e3.canvas.height), this.clear();
6891 }

Callers 1

constructorMethod · 0.95

Calls 1

clearMethod · 0.95

Tested by

no test coverage detected