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

Method _resolveBackgroundRgba

src/server/web/public/terminal.js:7723–7733  ·  view source on GitHub ↗
(e3, t3, i3)

Source from the content-addressed store, hash-verified

7721 default:
7722 g2 = h2 ? this._config.colors.background : this._config.colors.foreground;
7723 }
7724 return this._config.allowTransparency && (g2 = n.color.opaque(g2)), l2 && (g2 = n.color.multiplyOpacity(g2, s2.DIM_OPACITY)), g2;
7725 }
7726 _resolveBackgroundRgba(e3, t3, i3) {
7727 switch (e3) {
7728 case 16777216:
7729 case 33554432:
7730 return this._getColorFromAnsiIndex(t3).rgba;
7731 case 50331648:
7732 return t3 << 8;
7733 default:
7734 return i3 ? this._config.colors.foreground.rgba : this._config.colors.background.rgba;
7735 }
7736 }

Callers 1

Calls 1

Tested by

no test coverage detected