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?
“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.”
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.
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).
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.
finally i give up using nodejs-mode for the interactive. then refer to here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With