Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdin not work with inquirer #85

Closed
dickeylth opened this issue Sep 14, 2017 · 1 comment
Closed

stdin not work with inquirer #85

dickeylth opened this issue Sep 14, 2017 · 1 comment

Comments

@dickeylth
Copy link

dickeylth commented Sep 14, 2017

I'm using grunt-exec to run interactive command task and have encountered the problem that the keyboard input was printed instead of actually worked:

Running "exec:test" (exec) task
? 'Allo dickeylth! What would you like to do? (Use arrow keys)
  Run a generator
❯ Gruntfile
  Clam
  ──────────────
  Update your generators
  Install a generator
  Find some help
(Move up and down to reveal more choices)^[[B^[[B^[[B^[[B^[[B^C

I've created a MVP repo here: https://github.com/dickeylth/grunt-exec-inquirer, could anyone provide any help? Thank you!

@dickeylth
Copy link
Author

Change stdio: true to stdio: 'inherit' and it worked now, close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant