We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1a05eb commit f4dcdfaCopy full SHA for f4dcdfa
lib/tty.js
@@ -48,6 +48,13 @@ function WriteStream(fd) {
48
writable: true
49
});
50
51
+ // Prevents interleaved stdout/stderr output in OS X terminals.
52
+ // As noted in the following reference, local TTYs tend to be quite fast and
53
+ // this behaviour has become expected due historical functionality on OS X,
54
+ // even though it was originally intended to change in v1.0.2 (Libuv 1.2.1).
55
+ // Ref: https://github.com/nodejs/node/pull/1771#issuecomment-119351671
56
+ if (process.platform === 'darwin') this._handle.setBlocking(true);
57
+
58
var winSize = [];
59
var err = this._handle.getWindowSize(winSize);
60
if (!err) {
0 commit comments