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

Method _clearAll

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

Source from the content-addressed store, hash-verified

7240 this._deviceCellWidth = t3.device.cell.width, this._deviceCellHeight = t3.device.cell.height, this._deviceCharWidth = t3.device.char.width, this._deviceCharHeight = t3.device.char.height, this._deviceCharLeft = t3.device.char.left, this._deviceCharTop = t3.device.char.top, this._canvas.width = t3.device.canvas.width, this._canvas.height = t3.device.canvas.height, this._canvas.style.width = `${t3.css.canvas.width}px`, this._canvas.style.height = `${t3.css.canvas.height}px`, this._alpha || this._clearAll(), this._refreshCharAtlas(e3, this._themeService.colors);
7241 }
7242 _fillBottomLineAtCells(e3, t3, i3 = 1) {
7243 this._ctx.fillRect(e3 * this._deviceCellWidth, (t3 + 1) * this._deviceCellHeight - this._coreBrowserService.dpr - 1, i3 * this._deviceCellWidth, this._coreBrowserService.dpr);
7244 }
7245 _clearAll() {
7246 this._alpha ? this._ctx.clearRect(0, 0, this._canvas.width, this._canvas.height) : (this._ctx.fillStyle = this._themeService.colors.background.css, this._ctx.fillRect(0, 0, this._canvas.width, this._canvas.height));
7247 }

Callers 2

_initCanvasMethod · 0.95
resizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected