* compilation-mode not processing color escape codes
@ 2010-03-10 17:56 Alex Reed
2010-03-13 9:24 ` A.Politz
0 siblings, 1 reply; 2+ messages in thread
From: Alex Reed @ 2010-03-10 17:56 UTC (permalink / raw)
To: help-gnu-emacs
Using compilation-mode, I am calling a compile tool-flow. One of the
steps of the compilation outputs colored/bolded text to the terminal.
This is done in python using '\033[1;30m' to bold, and '\033[m' to un-
bold.
Emacs then displays the resulting output as "^[[1;30m<string>^[[m".
How can I convince emacs to either (a) display the requested color, or
(b) strip/ignore the escape sequences?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: compilation-mode not processing color escape codes
2010-03-10 17:56 compilation-mode not processing color escape codes Alex Reed
@ 2010-03-13 9:24 ` A.Politz
0 siblings, 0 replies; 2+ messages in thread
From: A.Politz @ 2010-03-13 9:24 UTC (permalink / raw)
To: help-gnu-emacs
On Mar 10, 6:56 pm, Alex Reed <acre...@gmail.com> wrote:
> Using compilation-mode, I am calling a compile tool-flow. One of the
> steps of the compilation outputs colored/bolded text to the terminal.
> This is done in python using '\033[1;30m' to bold, and '\033[m' to un-
> bold.
>
> Emacs then displays the resulting output as "^[[1;30m<string>^[[m".
>
> How can I convince emacs to either (a) display the requested color, or
> (b) strip/ignore the escape sequences?
Maybe you could pipe the output from your tool through 'col -b' or use
`ansi-color-apply-on-region' in a `compilation-filter-hook'.
-ap
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-13 9:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-10 17:56 compilation-mode not processing color escape codes Alex Reed
2010-03-13 9:24 ` A.Politz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).