mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: document setRawMode write access on Windows
Fixes: https://github.com/nodejs/node/issues/63852 Signed-off-by: Erik Demaine <edemaine@mit.edu> PR-URL: https://github.com/nodejs/node/pull/63856 Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
1 parent
4a784cb3e6
commit
abfc51f757
1 file changed
+6
@@ -86,6 +86,11 @@ characters. <kbd>Ctrl</kbd>+<kbd>C</kbd> will no longer cause a `SIGINT` when
|
||||
in this mode. This mode does not affect terminal output processing, such as
|
||||
newline translation on Unix terminals.
|
||||
|
||||
On Windows, `setRawMode()` requires write permission to the console input
|
||||
buffer. When opening `"\\\\.\\CONIN$"` with the [`fs.open()`][] family of APIs
|
||||
(for passing into `new tty.ReadStream()`), be sure to use a read/write flag
|
||||
such as `'r+'`.
|
||||
|
||||
## Class: `tty.WriteStream`
|
||||
|
||||
<!-- YAML
|
||||
@@ -342,6 +347,7 @@ The `tty.isatty()` method returns `true` if the given `fd` is associated with
|
||||
a TTY and `false` if it is not, including whenever `fd` is not a non-negative
|
||||
integer.
|
||||
|
||||
[`fs.open()`]: fs.md#fsopenpath-flags-mode-callback
|
||||
[`net.Socket` constructor]: net.md#new-netsocketoptions
|
||||
[`process.stderr`]: process.md#processstderr
|
||||
[`process.stdin`]: process.md#processstdin
|
||||
|
||||
Reference in new issue
Block a user