You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in the code, the prompt is supposed to take parameter args.stdout. I tried passing process.stderr to stdout but it doesn't seem to work.
To Reproduce
Steps to reproduce the behavior:
. Create index.js with basic autocomplete prompt code and set question.stdout = process.stderr (this is supposed to make terminal wait so command substitution like eval $(command) can work)
print any random path for testing when a specific value is selected.
cd $(node index.js) This will not show the autocomplete
Expected behavior
In the above scenario, it should first show the autocomplete prompt and on selecting that particular option it should cd to the mentioned path
Describe the bug
As mentioned in the code, the prompt is supposed to take parameter
args.stdout
. I tried passing process.stderr tostdout
but it doesn't seem to work.To Reproduce
Steps to reproduce the behavior:
index.js
with basic autocomplete prompt code and set question.stdout = process.stderr (this is supposed to make terminal wait so command substitution likeeval $(command)
can work)cd $(node index.js)
This will not show the autocompleteExpected behavior
In the above scenario, it should first show the autocomplete prompt and on selecting that particular option it should
cd
to the mentioned pathSystem
node -v
10.16.0Additional context
Add any other context about the problem here.
I looked around the code and found following code in
lib/elements/prompt.js
Isn't
opts.out
is supposed to beopts.stdout
in above code? sinceargs.stdout
is mentioned everywhere while mentioning the arguments.EDIT: I tried having
out
instead ofstdout
and it does wait for the input but it re-renders autocomplete list everytime you press key.The text was updated successfully, but these errors were encountered: