Skip to content

Commit bf2cd22

Browse files
committed
process: resize stderr on SIGWINCH
Fixes: #2219 PR-URL: #2231 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 66fc8ca commit bf2cd22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/node.js

+5
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,11 @@
637637
er = er || new Error('process.stderr cannot be closed.');
638638
stderr.emit('error', er);
639639
};
640+
if (stderr.isTTY) {
641+
process.on('SIGWINCH', function() {
642+
stderr._refreshSize();
643+
});
644+
}
640645
return stderr;
641646
});
642647

0 commit comments

Comments
 (0)