MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / cleanup

Function cleanup

src/setup/prompt.ts:154–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 };
153
154 const cleanup = (): void => {
155 try { stdin.removeListener('keypress', onKey); } catch { /* ignore */ }
156 try { if (stdin.isTTY) (stdin as any).setRawMode(false); } catch { /* ignore */ }
157 stdout.write('\x1b[?25h'); // restore cursor
158 try { stdin.pause(); } catch { /* ignore */ }
159 };
160
161 let numBuf = '';
162 let numTimer: ReturnType<typeof setTimeout> | undefined;

Callers 1

onKeyFunction · 0.70

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected