On 2016-07-22 16:54, Matthew Carter wrote: > Clément Pit--Claudel writes: > >> On 2016-07-20 13:05, Robert Weiner wrote: >>> What happens if you use {M-x ansi-term RET}? >> >> I guess it would work fine, but I'd rather not use ansi-term, if possible. >> > > The ansi-color package has a function, #'ansi-color-apply-on-region > which works well for translating these to colorized font faces (I use it > on some shell output from my own custom functions that include these > escape codes). Hmm, I'm not sure I understand. shell-mode already translates most ANSI escapes to colorized faces, doesn't it? For example, in emacs -Q, running M-x shell and typing `env TERM=xterm ls --color' gives me properly colored output. AFAICT, the only thing that's missing is support for the two specific codes (61 and 62) that `apt' is using. Isn't that right? Clément.