help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Examining the output of a shell command?


From: Eli Zaretskii
Subject: Re: Examining the output of a shell command?
Date: Mon, 29 Jun 2015 17:51:41 +0300

> From: Raffaele Ricciardi <rfflrccrd@gmail.com>
> Date: Mon, 29 Jun 2015 13:26:38 +0200
> 
> Hence, how could I capture a colorized output in Emacs as in a Bash
> session?
> 
> Below is a Bash script that recursively searches "*.el" files for the
> string "defun" and highlights matches (the complex `find` call is the
> shell command generated by `M-x rgrep` for the same task):
> 
>      #!/bin/bash
> 
>      export GREP_COLORS="mt=01;31:fn=:ln=:bn=:se=:sl=:cx=:ne"
>      export GREP_OPTIONS="--color=auto"
                                    ^^^^
Did you try with --color=always?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]