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

Method setIndicator

packages/pi-tui/src/components/loader.ts:64–70  ·  view source on GitHub ↗
(indicator?: LoaderIndicatorOptions)

Source from the content-addressed store, hash-verified

62 }
63
64 setIndicator(indicator?: LoaderIndicatorOptions): void {
65 this.renderIndicatorVerbatim = indicator !== undefined;
66 this.frames = indicator?.frames !== undefined ? [...indicator.frames] : [...DEFAULT_FRAMES];
67 this.intervalMs = indicator?.intervalMs && indicator.intervalMs > 0 ? indicator.intervalMs : DEFAULT_INTERVAL_MS;
68 this.currentFrame = 0;
69 this.start();
70 }
71
72 private restartAnimation(): void {
73 this.stop();

Callers 1

constructorMethod · 0.95

Calls 1

startMethod · 0.95

Tested by

no test coverage detected