We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daf4d6f commit f5c39a8Copy full SHA for f5c39a8
packages/prompts/README.md
@@ -181,6 +181,11 @@ The context options are:
181
| clearPromptOnDone | `boolean` | no | If true, we'll clear the screen after the prompt is answered |
182
| signal | `AbortSignal` | no | An AbortSignal to cancel prompts asynchronously |
183
184
+> [!WARNING]
185
+> When providing an input stream or piping `process.stdin`, it's very likely you need to call `process.stdin.setRawMode(true)`
186
+> before calling inquirer functions. Node.js usually does it automatically, but when we shadow the stdin, Node can loss track
187
+> and not know it has to. If the prompt isn't interactive (arrows don't work, etc), it's likely due to this.
188
+
189
Example:
190
191
```js
0 commit comments