From bf2cd225a84a686d94549ee00100772d02f17551 Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Thu, 23 Jul 2015 09:15:19 -0700 Subject: process: resize stderr on SIGWINCH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://github.com/nodejs/io.js/issues/2219 PR-URL: https://github.com/nodejs/io.js/pull/2231 Reviewed-By: Colin Ihrig Reviewed-By: Ben Noordhuis Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Michaƫl Zasso --- src/node.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/node.js') diff --git a/src/node.js b/src/node.js index 82094cf44f..be3eff2ce7 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; }); -- cgit v1.2.1