Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js prompt '>' can not show in eshell

I want to run Node.js in eshell, but the prompt does not right:

enter image description here

So, how can I fix this?

like image 225
unionx Avatar asked Feb 22 '12 07:02

unionx


1 Answers

An alternative is to add this to your .emacs:

(setenv "NODE_NO_READLINE" "1")

The benefit of this approach is that it will also work for other invocations of Node programs that you run directly.

like image 53
Joubert Nel Avatar answered Oct 02 '22 17:10

Joubert Nel