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

Method render

src/server/web/public/terminal.js:6889–6902  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

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 }
6892 render(e3) {
6893 if (!this._atlas) return;
6894 const t3 = this._gl;
6895 t3.useProgram(this._program), t3.bindVertexArray(this._vertexArrayObject), this._activeBuffer = (this._activeBuffer + 1) % 2;
6896 const i3 = this._vertices.attributesBuffers[this._activeBuffer];
6897 let s3 = 0;
6898 for (let t4 = 0; t4 < e3.lineLengths.length; t4++) {
6899 const r2 = t4 * this._terminal.cols * h, o2 = this._vertices.attributes.subarray(r2, r2 + e3.lineLengths[t4] * h);
6900 i3.set(o2, s3), s3 += o2.length;
6901 }
6902 t3.bindBuffer(t3.ARRAY_BUFFER, this._attributesBuffer), t3.bufferData(t3.ARRAY_BUFFER, i3.subarray(0, s3), t3.STREAM_DRAW);
6903 for (let e4 = 0; e4 < this._atlas.pages.length; e4++) this._atlas.pages[e4].version !== this._atlasTextures[e4].version && this._bindAtlasPageTexture(t3, this._atlas, e4);
6904 t3.drawElementsInstanced(t3.TRIANGLE_STRIP, 4, t3.UNSIGNED_BYTE, 0, s3 / h);
6905 }

Callers 2

renderRowsMethod · 0.45

Calls 2

_bindAtlasPageTextureMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected