Skip to content

Commit 3b3a7a7

Browse files
committed
readme: remove references to stderr for shell()
1 parent 706906a commit 3b3a7a7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ conn.on('ready', function() {
9595
console.log('Stream :: close');
9696
conn.end();
9797
}).on('data', function(data) {
98-
console.log('STDOUT: ' + data);
99-
}).stderr.on('data', function(data) {
100-
console.log('STDERR: ' + data);
98+
console.log('OUTPUT: ' + data);
10199
});
102100
stream.end('ls -l\nexit\n');
103101
});
@@ -982,12 +980,12 @@ This is a normal **streams2** Duplex Stream (used both by clients and servers),
982980

983981
* If there was an `exit` event, the `close` event will be passed the same arguments for convenience.
984982

983+
* A `stderr` property contains a Readable stream that represents output from stderr.
984+
985985
* For shell() and exec():
986986

987987
* The readable side represents stdout and the writable side represents stdin.
988988

989-
* A `stderr` property contains a Readable stream that represents output from stderr.
990-
991989
* **signal**(< _string_ >signalName) - _boolean_ - Sends a POSIX signal to the current process on the server. Valid signal names are: 'ABRT', 'ALRM', 'FPE', 'HUP', 'ILL', 'INT', 'KILL', 'PIPE', 'QUIT', 'SEGV', 'TERM', 'USR1', and 'USR2'. Some server implementations may ignore this request if they do not support signals. Note: If you are trying to send SIGINT and you find `signal()` doesn't work, try writing `'\x03'` to the Channel stream instead. Returns `false` if you should wait for the `continue` event before sending any more traffic.
992990

993991
* **setWindow**(< _integer_ >rows, < _integer_ >cols, < _integer_ >height, < _integer_ >width) - _boolean_ - Lets the server know that the local terminal window has been resized. The meaning of these arguments are described in the 'Pseudo-TTY settings' section. Returns `false` if you should wait for the `continue` event before sending any more traffic.

0 commit comments

Comments
 (0)