all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.