Skip to content

Commit

Permalink
Workaround node.js bug with readline (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored and SBoudrias committed Jan 24, 2020
1 parent ee55149 commit 833385b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/inquirer/lib/ui/baseUI.js
Expand Up @@ -55,7 +55,11 @@ class UI {
// Close the readline
this.rl.output.end();
this.rl.pause();
this.rl.close();

// @see https://github.com/nodejs/node/issues/21771
if (!/^win/i.test(process.platform)) {
this.rl.close();
}
}
}

Expand Down

0 comments on commit 833385b

Please sign in to comment.