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

Function rgb

src/ink/termio/osc.ts:478–481  ·  view source on GitHub ↗
(c: Color)

Source from the content-addressed store, hash-verified

476export function tabStatus(fields: TabStatusAction): string {
477 const parts: string[] = []
478 const rgb = (c: Color) =>
479 c.type === 'rgb'
480 ? `#${[c.r, c.g, c.b].map(n => n.toString(16).padStart(2, '0')).join('')}`
481 : ''
482 if ('indicator' in fields)
483 parts.push(`indicator=${fields.indicator ? rgb(fields.indicator) : ''}`)
484 if ('status' in fields)

Callers 1

tabStatusFunction · 0.70

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected