diff --git a/index.ts b/index.ts index ca545ab..5a6151a 100644 --- a/index.ts +++ b/index.ts @@ -552,6 +552,12 @@ async function main() { process.exit(1); } +process.on("SIGINT", () => { + process.stdout.write("\x1b[?25h"); + process.stdout.write("\n"); + process.exit(130); +}); + main().catch((err) => { console.error(` ${RED}Unexpected error: ${err}${RESET}`); process.exit(1);