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

Function fakeTerminal

apps/kimi-code/test/tui/task-output-viewer.test.ts:13–37  ·  view source on GitHub ↗
(rows: number, columns = 120)

Source from the content-addressed store, hash-verified

11}
12
13function fakeTerminal(rows: number, columns = 120): Terminal {
14 return {
15 start: () => {},
16 stop: () => {},
17 drainInput: () => Promise.resolve(),
18 write: () => {},
19 get columns() {
20 return columns;
21 },
22 get rows() {
23 return rows;
24 },
25 get kittyProtocolActive() {
26 return false;
27 },
28 moveBy: () => {},
29 hideCursor: () => {},
30 showCursor: () => {},
31 clearLine: () => {},
32 clearFromCursor: () => {},
33 clearScreen: () => {},
34 setTitle: () => {},
35 setProgress: () => {},
36 };
37}
38
39function info(overrides: Partial<BackgroundTaskInfo> = {}): BackgroundTaskInfo {
40 return {

Callers 1

makeViewerFunction · 0.70

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected