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

Method terminalErrorHandler

apps/kimi-code/src/tui/kimi-tui.ts:846–850  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

844 }
845
846 const terminalErrorHandler = (error: Error): void => {
847 if (isDeadTerminalError(error)) {
848 this.emergencyTerminalExit();
849 }
850 };
851 process.stdout.on('error', terminalErrorHandler);
852 process.stderr.on('error', terminalErrorHandler);
853 this.signalCleanupHandlers.push(() => {

Callers

nothing calls this directly

Calls 2

emergencyTerminalExitMethod · 0.95
isDeadTerminalErrorFunction · 0.90

Tested by

no test coverage detected