()
| 334 | |
| 335 | private addCleanupListeners() { |
| 336 | const cleanup = () => { |
| 337 | this.cleanupListeners.forEach(fn => fn()) |
| 338 | |
| 339 | if ((this.outputStream as typeof process.stdout).isTTY) { |
| 340 | (this.outputStream as Writable).write(SHOW_CURSOR) |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | const onExit = (signal?: string | number, exitCode?: number) => { |
| 345 | cleanup() |
no test coverage detected