Skip to content

Commit

Permalink
Revert "Workaround node.js bug that closes main input and output stre…
Browse files Browse the repository at this point in the history
…am. (#879)" (#881)

This reverts commit 3d0ff8c.
  • Loading branch information
mshima authored and SBoudrias committed Jan 7, 2020
1 parent 0bc1b01 commit a70ee52
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/inquirer/lib/ui/baseUI.js
Expand Up @@ -2,7 +2,6 @@
var _ = require('lodash');
var MuteStream = require('mute-stream');
var readline = require('readline');
var { PassThrough } = require('stream');

/**
* Base interface class other can inherits from
Expand Down Expand Up @@ -71,14 +70,6 @@ function setupReadlineOptions(opt) {
ms.pipe(opt.output || process.stdout);
var output = ms;

if (/^win/i.test(process.platform)) {
// @see https://github.com/nodejs/node/issues/21771
// rl.close() closes main stream.
var oldInput = input;
input = new PassThrough();
oldInput.pipe(input);
}

return _.extend(
{
terminal: true,
Expand Down

0 comments on commit a70ee52

Please sign in to comment.