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

Method setOrReportIndexedColor

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

Source from the content-addressed store, hash-verified

3349 return this._iconName = e3, true;
3350 }
3351 setOrReportIndexedColor(e3) {
3352 const t3 = [], i3 = e3.split(";");
3353 for (; i3.length > 1; ) {
3354 const e4 = i3.shift(), s3 = i3.shift();
3355 if (/^\d+$/.exec(e4)) {
3356 const i4 = parseInt(e4);
3357 if (D(i4)) if ("?" === s3) t3.push({ type: 0, index: i4 });
3358 else {
3359 const e5 = (0, S.parseColor)(s3);
3360 e5 && t3.push({ type: 1, index: i4, color: e5 });
3361 }
3362 }
3363 }
3364 return t3.length && this._onColor.fire(t3), true;
3365 }
3366 setHyperlink(e3) {
3367 const t3 = e3.split(";");
3368 return !(t3.length < 2) && (t3[1] ? this._createHyperlink(t3[0], t3[1]) : !t3[0] && this._finishHyperlink());

Callers 1

constructorMethod · 0.95

Calls 4

DFunction · 0.85
shiftMethod · 0.80
fireMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected