Skip to content

Commit

Permalink
Fix(@inquirer/core): Destroy output stream on exit. (#1499)
Browse files Browse the repository at this point in the history
  • Loading branch information
atikassam authored Aug 5, 2024
1 parent 9c98d0e commit 04323b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/lib/create-prompt.mts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export function createPrompt<Value, Config>(view: ViewFunction<Value, Config>) {
removeExitListener();
rl.input.removeListener('keypress', checkCursorPos);
rl.removeListener('close', hooksCleanup);
output.destroy();
}

cancel = () => {
Expand Down

0 comments on commit 04323b3

Please sign in to comment.