[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can we support apt's funky ANSI escapes?
From: |
Clément Pit--Claudel |
Subject: |
Re: Can we support apt's funky ANSI escapes? |
Date: |
Fri, 22 Jul 2016 17:59:03 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 2016-07-22 16:54, Matthew Carter wrote:
> Clément Pit--Claudel <address@hidden> 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.
signature.asc
Description: OpenPGP digital signature