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

Method percentageUsed

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

Source from the content-addressed store, hash-verified

7929 return { texturePage: 0, texturePosition: { x: 0, y: 0 }, texturePositionClipSpace: { x: 0, y: 0 }, size: { x: t3.right - t3.left + 1, y: t3.bottom - t3.top + 1 }, sizeClipSpace: { x: t3.right - t3.left + 1, y: t3.bottom - t3.top + 1 }, offset: { x: -t3.left + o2 + (s3 || r2 ? Math.floor((this._config.deviceCellWidth - this._config.deviceCharWidth) / 2) : 0), y: -t3.top + o2 + (s3 || r2 ? 1 === this._config.lineHeight ? 0 : Math.round((this._config.deviceCellHeight - this._config.deviceCharHeight) / 2) : 0) } };
7930 }
7931 }
7932 t2.TextureAtlas = g;
7933 class v {
7934 get percentageUsed() {
7935 return this._usedPixels / (this.canvas.width * this.canvas.height);
7936 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected