-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
bash node env vars for readline #2205
Comments
I'm dropping directly into the repl - can you provide the script you're testing with? Otherwise, when I run |
This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up. |
Automatically closing this issue due to lack of activity |
Nodemon does not respect NODE_NO_READLINE=1 env variable. I need to set this env variable as documented here:
https://nodejs.org/api/repl.html#using-the-nodejs-repl-with-advanced-line-editors
Bash handles history and interrupts keyboard inputs like UP, DOWN, PGUP, PGDN. To use those keyboard inputs with Node, NODE_NO_READLINE=1 has to be set.
In absence of this env var, keyboard inputs appear as escape sequences like [[^A, [[^B.
The text was updated successfully, but these errors were encountered: