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

Method constructor

packages/pi-tui/src/components/loader.ts:28–41  ·  view source on GitHub ↗
(
		ui: TUI,
		spinnerColorFn: (str: string) => string,
		messageColorFn: (str: string) => string,
		message: string = "Loading...",
		indicator?: LoaderIndicatorOptions,
	)

Source from the content-addressed store, hash-verified

26 private message: string = "Loading...";
27
28 constructor(
29 ui: TUI,
30 spinnerColorFn: (str: string) => string,
31 messageColorFn: (str: string) => string,
32 message: string = "Loading...",
33 indicator?: LoaderIndicatorOptions,
34 ) {
35 super("", 1, 0);
36 this.ui = ui;
37 this.spinnerColorFn = spinnerColorFn;
38 this.messageColorFn = messageColorFn;
39 this.message = message;
40 this.setIndicator(indicator);
41 }
42
43 override render(width: number): string[] {
44 return ["", ...super.render(width)];

Callers

nothing calls this directly

Calls 1

setIndicatorMethod · 0.95

Tested by

no test coverage detected