summaryrefslogtreecommitdiff
path: root/lib/tty.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-12-21 02:08:40 +0000
committerisaacs <i@izs.me>2012-12-21 11:05:46 -0800
commit244924823ec0db092a39044408a1adb6e48cf3c3 (patch)
tree94154f1ed82dac3e3bd2a776a9c959b9fae4e89a /lib/tty.js
parent0edd93dcc1e0083511fc82fd5c44e96949200a4b (diff)
downloadandroid-node-v8-244924823ec0db092a39044408a1adb6e48cf3c3.tar.gz
android-node-v8-244924823ec0db092a39044408a1adb6e48cf3c3.tar.bz2
android-node-v8-244924823ec0db092a39044408a1adb6e48cf3c3.zip
stdio: Do not read from stdout/err
This fixes windows stdio pipes in streams2 land.
Diffstat (limited to 'lib/tty.js')
-rw-r--r--lib/tty.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/tty.js b/lib/tty.js
index 5b4036d0db..4ba276818d 100644
--- a/lib/tty.js
+++ b/lib/tty.js
@@ -47,21 +47,15 @@ function ReadStream(fd, options) {
options = util._extend({
highWaterMark: 0,
lowWaterMark: 0,
+ readable: true,
+ writable: false,
handle: new TTY(fd, true)
}, options);
net.Socket.call(this, options);
- this.readable = true;
- this.writable = false;
this.isRaw = false;
this.isTTY = true;
-
- // this.read = function(orig) { return function(n) {
- // var ret = orig.apply(this, arguments);
- // console.trace('TTY read(' + n + ') -> ' + ret);
- // return ret;
- // } }(this.read);
}
inherits(ReadStream, net.Socket);
@@ -83,9 +77,6 @@ function WriteStream(fd) {
writable: true
});
- this.readable = false;
- this.writable = true;
-
var winSize = this._handle.getWindowSize();
if (winSize) {
this.columns = winSize[0];