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

Method setFont

src/server/web/public/terminal.js:1522–1524  ·  view source on GitHub ↗
(e3, t3, i2, s2)

Source from the content-addressed store, hash-verified

1520 this._flat.fill(-9999), this._holey = /* @__PURE__ */ new Map();
1521 }
1522 setFont(e3, t3, i2, s2) {
1523 e3 === this._font && t3 === this._fontSize && i2 === this._weight && s2 === this._weightBold || (this._font = e3, this._fontSize = t3, this._weight = i2, this._weightBold = s2, this._container.style.fontFamily = this._font, this._container.style.fontSize = `${this._fontSize}px`, this._measureElements[0].style.fontWeight = `${i2}`, this._measureElements[1].style.fontWeight = `${s2}`, this._measureElements[2].style.fontWeight = `${i2}`, this._measureElements[3].style.fontWeight = `${s2}`, this.clear());
1524 }
1525 get(e3, t3, i2) {
1526 let s2 = 0;
1527 if (!t3 && !i2 && 1 === e3.length && (s2 = e3.charCodeAt(0)) < 256) {

Callers 2

constructorMethod · 0.80
_handleOptionsChangedMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected