MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / applyLineResets

Method applyLineResets

packages/pi-tui/src/tui.ts:1105–1114  ·  view source on GitHub ↗
(lines: string[])

Source from the content-addressed store, hash-verified

1103 private static readonly SEGMENT_RESET = "\x1b[0m\x1b]8;;\x07";
1104
1105 private applyLineResets(lines: string[]): string[] {
1106 const reset = TUI.SEGMENT_RESET;
1107 for (let i = 0; i < lines.length; i++) {
1108 const line = lines[i]!;
1109 if (!isImageLine(line)) {
1110 lines[i] = normalizeTerminalOutput(line) + reset;
1111 }
1112 }
1113 return lines;
1114 }
1115
1116 private collectKittyImageIds(lines: string[]): Set<number> {
1117 const ids = new Set<number>();

Callers 1

doRenderMethod · 0.95

Calls 2

isImageLineFunction · 0.90
normalizeTerminalOutputFunction · 0.90

Tested by

no test coverage detected