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

Function push

web/lib/ansi-to-html.ts:78–81  ·  view source on GitHub ↗
(end: number)

Source from the content-addressed store, hash-verified

76 let textStart = 0;
77
78 const push = (end: number) => {
79 const text = input.slice(textStart, end);
80 if (text) segments.push({ text, style: { ...current } });
81 };
82
83 while (pos < input.length) {
84 const esc = input.indexOf("\x1b[", pos);

Callers 1

parseAnsiSegmentsFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected