MCPcopy Create free account
hub / github.com/Noumena-Network/code / resolveAnsiRenderProps

Function resolveAnsiRenderProps

src/ink/Ansi.tsx:127–132  ·  view source on GitHub ↗
(props: Readonly<SpanProps>, dimColor: boolean)

Source from the content-addressed store, hash-verified

125};
126
127export function resolveAnsiRenderProps(props: Readonly<SpanProps>, dimColor: boolean): Readonly<SpanProps> {
128 return dimColor && props.dim !== true ? {
129 ...props,
130 dim: true
131 } : props;
132}
133
134/**
135 * Parse an ANSI string into spans using the termio parser.

Callers 2

Ansi.tsxFile · 0.85
Ansi.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected