Skip to content

Commit

Permalink
process: resize stderr on SIGWINCH
Browse files Browse the repository at this point in the history
Fixes: #2219
PR-URL: #2231
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
  • Loading branch information
Fishrock123 committed Jul 23, 2015
1 parent 66fc8ca commit bf2cd22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down

0 comments on commit bf2cd22

Please sign in to comment.