Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Emacs nodejs mode get garbage prompt [duplicate]

I use nodejs-mode on Emacs 24, But when i type:

M-x nodejs

it prompt garbage prompts like [0J>, now even though i have added below

(setq ansi-color-for-comint-mode t)

in emacs file. It still not work.

all the same, if i type node directory on Emacs shell-mode, then I will got an more annoying prompt like below:

ryu@ryu:~$ node
[1G[0J> [3G

Does any know why it behave like this?

like image 502
ryu Avatar asked Feb 15 '13 06:02

ryu


People also ask

How do I run Node JS in Emacs?

“The simplest way to have node.js as an inferior shell under Emacs is to use the js-comint package. The command M-x run-js will then open the interpreter.”

When to use garbage collector in Node JS?

June 13th, 2016. If you have a quite complex project which allocates lots of memory and drops it away quickly, the garbage collector of node.js or better V8 has to tidy up the memory. It became better since the first versions of node, but cleaning large chunks of memory can pause the application for a while.

How do you manage memory in Node JS?

Luckily for you, Node.js comes with a garbage collector, and you don’t need to manually manage memory allocation. Garbage collection is a way of managing application memory automatically. The job of the garbage collector (GC) is to reclaim memory occupied by unused objects (garbage).

What is garbage collection in Java?

Garbage collection is a way of managing application memory automatically. The job of the garbage collector (GC) is to reclaim memory occupied by unused objects (garbage). It was first used in LISP in 1959, invented by John McCarthy. The way how the GC knows that objects are no longer in use is that no other object has references to them.


1 Answers

finally i give up using nodejs-mode for the interactive. then refer to here

like image 106
ryu Avatar answered Oct 14 '22 08:10

ryu