How do I get Emacs shell mode to either render (or ignore) my colors instead of printing ASCII codes?

前端 未结 4 1462
逝去的感伤
逝去的感伤 2020-12-31 02:27

The symptom of the problem looks like \"[0m[27m[24m[J[34;1\" which on a terminal translates into the color blue.

-A

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-31 02:52

    I've got the following in my .emacs

    (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
    

提交回复
热议问题