MCPcopy
hub / github.com/codeaashu/claude-code / _getColorFromAnsiIndex

Method _getColorFromAnsiIndex

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

Source from the content-addressed store, hash-verified

7682 return this._getFromCacheMap(this._cacheMap, e3, t3, i3, s3, r2);
7683 }
7684 _getFromCacheMap(e3, t3, i3, s3, r2, o2 = false) {
7685 return u = e3.get(t3, i3, s3, r2), u || (u = this._drawToCache(t3, i3, s3, r2, o2), e3.set(t3, i3, s3, r2, u)), u;
7686 }
7687 _getColorFromAnsiIndex(e3) {
7688 if (e3 >= this._config.colors.ansi.length) throw new Error("No color found for idx " + e3);
7689 return this._config.colors.ansi[e3];
7690 }

Callers 5

_getBackgroundColorMethod · 0.95
_getForegroundColorMethod · 0.95
_drawToCacheMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected