0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 15:06:33 +01:00

doc: note 'resize' event conditions on Windows

PR-URL: https://github.com/nodejs/node/pull/13576
Fixes: https://github.com/nodejs/node/issues/13197
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
Dean Coakley 2017-06-09 09:40:53 -04:00 committed by Refael Ackermann
parent 1b2733f272
commit ff07eaa140
No known key found for this signature in database
GPG Key ID: CD704BD80FDDDB64

View File

@ -88,6 +88,15 @@ process.stdout.on('resize', () => {
});
```
*Note*: On Windows resize events will be emitted only if stdin is unpaused
(by a call to `resume()` or by adding a data listener) and in raw mode. It can
also be triggered if a terminal control sequence that moves the cursor is
written to the screen. Also, the resize event will only be signaled if the
console screen buffer height was also changed. For example shrinking the
console window height will not cause the resize event to be emitted. Increasing
the console window height will only be registered when the new console window
height is greater than the current console buffer size.
### writeStream.columns
<!-- YAML
added: v0.7.7