We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3a08c25 + f3f87d2 commit c87c768Copy full SHA for c87c768
1 file changed
README.md
@@ -101,6 +101,20 @@ ssh.connect({
101
})
102
```
103
104
+#### Pseudo-TTY commands
105
+
106
+Some terminal programs, such as `screen` or `tmux`, require a pseudo-TTY. Pass
107
+`pty: true` through `execOptions` when running those commands:
108
109
+```js
110
+const result = await ssh.execCommand('screen -r', {
111
+ execOptions: { pty: true }
112
+})
113
114
+console.log('STDOUT: ' + result.stdout)
115
+console.log('STDERR: ' + result.stderr)
116
+```
117
118
#### API
119
120
```ts
0 commit comments