nodejs-repl.el icon indicating copy to clipboard operation
nodejs-repl.el copied to clipboard

How to remove warning message

Open roymath-zz opened this issue 4 years ago • 1 comments

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 avatar Feb 03 '21 03:02 roymath-zz

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)))

roymath-zz avatar Feb 04 '21 14:02 roymath-zz