diff --git a/src/prompt/index.ts b/src/prompt/index.ts index 1166fcc..1715a46 100644 --- a/src/prompt/index.ts +++ b/src/prompt/index.ts @@ -57,6 +57,10 @@ export class CommandLinePrompt implements PromptInterface { exit(): void { clearInterval(this.timer); + // Show the cursor + process.stdout.write("\x1B[?25h"); + // Reset the terminal to the normal mode + process.stdin.setRawMode(false); this.rl.close(); } }