From 78b9c7a0a06ed2151a8e9d9e22f704ce34555ef3 Mon Sep 17 00:00:00 2001 From: Mplan Date: Tue, 9 Jun 2026 18:19:22 +0800 Subject: [PATCH] fix(cli): restore cursor visibility on SIGINT --- index.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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);