I use Emacs 24.2. I’ve installed
, and now in REPL instead of
sign i have this gibberish:
sign is changed. If you enter unfinished expression, it even prints
are system characters, that are not copied with copy-paste, i add them for you to have an idea.
In my init-file:
(require 'js-comint) (setq inferior-js-program-command "nodejs")
In terminal calling
produces working REPL.
Why prompt behaves this way? What should i do to correct this?
Problem courtesy of: Mirzhan Irkegulov
(setq inferior-js-mode-hook (lambda () ;; We like nice colors (ansi-color-for-comint-mode-on) ;; Deal with some prompt nonsense (add-to-list 'comint-preoutput-filter-functions (lambda (output) (replace-regexp-in-string "33\[[0-9]+[GK]" "" output)))))
is the escape character it prints as
Solution courtesy of: user797257