To use list feature of inquirer, user uses arrow keys to move list on menu.
but everytime I use arrow keys, I just get random characters like ^[[B^[[B^[[B^[[B^[[B^[[B I'm definitely sure It's nodemon's issue because It works fine when I run this without nodemon.
Does nodemon support input like arrow keys? if not, It'd be great if we can make the feature
I just found the same issue in inquirer repo
https://github.com/SBoudrias/Inquirer.js/issues/429
I wouldn't recommend trying to use nodemon with inquirer. It becomes a mess of input. Sorry.
would you merge if I make a PR for the feature though?
I'd rather hear how it would work first. A core design principle of nodemon
is: less features - which has already spiraled out of control, so it would
need to be careful thought through so it makes sense for a broad range of
use cases rather than just a single case..
On Tue, 30 May 2017, 22:49 Philip YoonShin, notifications@github.com
wrote:
would you merge if I make a PR for the feature though?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/remy/nodemon/issues/1041#issuecomment-305018761, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAA1hMMn73tRw2hLJGWNWAN3U-yuQ-2eks5r_I7rgaJpZM4NqpU3
.
Use Case: webpack currently doesn't watch its own config file for changes. I'm using nodemon to restart webpack-dev-server, but I'm also using inquirer somewhere in the mix to provide a UI for some settings before the dev server starts. This setup is broken because inquirer and nodemon aren't friends.
I found a solution to this.
You can tell nodemon to stop listening its restart command.
You can find more information about this in faq link below
https://github.com/remy/nodemon/blob/master/faq.md#nodemon-doesnt-work-with-my-repl
Most helpful comment
Use Case: webpack currently doesn't watch its own config file for changes. I'm using nodemon to restart webpack-dev-server, but I'm also using inquirer somewhere in the mix to provide a UI for some settings before the dev server starts. This setup is broken because inquirer and nodemon aren't friends.