diff --git a/src/node.js b/src/node.js index 82094cf44fb..be3eff2ce71 100644 --- a/src/node.js +++ b/src/node.js @@ -637,6 +637,11 @@ er = er || new Error('process.stderr cannot be closed.'); stderr.emit('error', er); }; + if (stderr.isTTY) { + process.on('SIGWINCH', function() { + stderr._refreshSize(); + }); + } return stderr; });