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

Function pushSegment

web/components/tools/AnsiRenderer.tsx:87–92  ·  view source on GitHub ↗
(end: number)

Source from the content-addressed store, hash-verified

85 let textStart = 0;
86
87 const pushSegment = (end: number) => {
88 const text = input.slice(textStart, end);
89 if (text) {
90 segments.push({ text, style: { ...current } });
91 }
92 };
93
94 while (pos < input.length) {
95 const esc = input.indexOf("\x1b[", pos);

Callers 1

parseAnsiFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected