Skip to content

Commit 6da59fe

Browse files
committed
doc: note 'resize' event unreliability on Windows
1 parent 9991e27 commit 6da59fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/tty.md

+3
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,15 @@ or `writeStream.rows` properties have changed. No arguments are passed to the
8282
listener callback when called.
8383

8484
```js
85+
process.stdin.setRawMode(true);
8586
process.stdout.on('resize', () => {
8687
console.log('screen size has changed!');
8788
console.log(`${process.stdout.columns}x${process.stdout.rows}`);
8889
});
8990
```
9091

92+
*Note:* Unrealiable event handler execution on all Windows platforms.
93+
9194
### writeStream.columns
9295
<!-- YAML
9396
added: v0.7.7

0 commit comments

Comments
 (0)