Shell-mode emacs shows npm sets characters weird

Shell mode cannot display the process npm install; He shows:

[?25h[1A[?25l[0G
[?25h[1A[?25l[0G
[?25h[1A[?25l[0G
[?25h[1A[?25l[0G
[?25h[1A[?25l[0G
[?25h[1A[?25l[0G
etc

What can be done about this? I really like it shell-modeotherwise.

+4
source share
1 answer

Try this in init:

(add-hook 'commint-mode-hook
          (lambda () (setenv "PAGER" "cat")))
0
source

Source: https://habr.com/ru/post/1630029/


All Articles