Skip to content

Commit

Permalink
Don't touch process.stdin
Browse files Browse the repository at this point in the history
Commenting the lines that refer to `process.stdin` prevents the windows error messages on Experience-Monks#42
  • Loading branch information
rafaelcastrocouto committed Mar 4, 2016
1 parent 434a77f commit 3c0e84f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,16 @@

// renderer streams should have same isTTY as main
var isTTY = globals._processTTY;
process.stdin.isTTY = isTTY.stdin;
//process.stdin.isTTY = isTTY.stdin;
process.stdout.isTTY = isTTY.stdout;
process.stderr.isTTY = isTTY.stderr;
process.stdin._read = function () {
this.push('');
};
//process.stdin._read = function () {
// this.push('');
//};

// send along any stdin
ipc.on('stdin', function (event, data) {
process.stdin.push(data);
});
// ipc.on('stdin', function (event, data) {
// process.stdin.push(data);
//});
}
})();

0 comments on commit 3c0e84f

Please sign in to comment.