From 6da59fec6cd0c0afe5edeb7d91daf929ea4a3601 Mon Sep 17 00:00:00 2001 From: Dean Coakley Date: Fri, 9 Jun 2017 14:40:53 +0100 Subject: [PATCH 1/9] doc: note 'resize' event unreliability on Windows --- doc/api/tty.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/tty.md b/doc/api/tty.md index 8f250e45d655f9..2b4c96f7430573 100644 --- a/doc/api/tty.md +++ b/doc/api/tty.md @@ -82,12 +82,15 @@ or `writeStream.rows` properties have changed. No arguments are passed to the listener callback when called. ```js +process.stdin.setRawMode(true); process.stdout.on('resize', () => { console.log('screen size has changed!'); console.log(`${process.stdout.columns}x${process.stdout.rows}`); }); ``` +*Note:* Unrealiable event handler execution on all Windows platforms. + ### writeStream.columns