Event: 'resize'
function () {}
Emitted by refreshSize() when either of the columns or rows properties has changed.
process.stdout.on('resize', () => {
console.log('screen size has changed!');
console.log(`${process.stdout.columns}x${process.stdout.rows}`);
});
Please login to continue.