Alex Rivera | Logout

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

Asked 2008-11-01T23:44:15.343
20

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

-A

Edit
Report

1 Answer

31

I've got the following in my .emacs

(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
answered 2008-11-02T02:07:23.337

Your Answer