Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
readline: make --interactive work when stdin is a pipe and stdout is …
Browse files Browse the repository at this point in the history
…a TTY
  • Loading branch information
piscisaureus committed Aug 22, 2012
1 parent 2040ca9 commit d7429dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/readline.js
Expand Up @@ -64,7 +64,7 @@ function Interface(input, output, completer) {

this.setPrompt('> ');

this.enabled = output.isTTY;
this.enabled = input.isTTY && output.isTTY;

if (parseInt(process.env['NODE_NO_READLINE'], 10)) {
this.enabled = false;
Expand Down

0 comments on commit d7429dd

Please sign in to comment.