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

Method restoreIndexedColor

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

Source from the content-addressed store, hash-verified

3396 return this._setOrReportSpecialColor(e3, 2);
3397 }
3398 restoreIndexedColor(e3) {
3399 if (!e3) return this._onColor.fire([{ type: 2 }]), true;
3400 const t3 = [], i3 = e3.split(";");
3401 for (let e4 = 0; e4 < i3.length; ++e4) if (/^\d+$/.exec(i3[e4])) {
3402 const s3 = parseInt(i3[e4]);
3403 D(s3) && t3.push({ type: 2, index: s3 });
3404 }
3405 return t3.length && this._onColor.fire(t3), true;
3406 }
3407 restoreFgColor(e3) {
3408 return this._onColor.fire([{ type: 2, index: 256 }]), true;
3409 }

Callers 1

constructorMethod · 0.95

Calls 3

DFunction · 0.85
fireMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected