abicky / nodejs-repl.el

Run Node.js REPL and communicate with the process
190 stars 38 forks source link

How to remove warning message #39

Open roymath-zz opened 3 years ago

roymath-zz commented 3 years ago

Currently, I see a message in the repl saying:

.editor
// Entering editor mode (^D to finish, ^C to cancel)
console.log(1+4);
5
undefined
.>.

Q1. How do I get rid of the text "Entering editor mode..."? Q2. Also, how do I change the prompt to just "> " instead of ".>."

roymath-zz commented 3 years ago

ah - making the following change fixes the prompt:

[nodejs-repl.el]
...
542        (apply 'make-comint nodejs-repl-process-name "env" nil
543               `("TERM=dumb" ,node-command ,@nodejs-repl-arguments "-e" ,nodejs-repl-code)))