Less and ANSI colour escape sequences
Siddhesh Poyarekar
spoyarek at redhat.com
Tue Oct 27 08:02:59 UTC 2009
On Tue, 2009-10-27 at 00:58 -0700, Suvayu Ali wrote:
> I was wondering why `less' in Fedora 11 can't display ANSI colour escape
> sequences even with the `-r' or `-R' options. I use grep as `grep
> --color=always'. When I pipe the output to `less -R' or `less -r' all
> the colours are lost. This works on my Xubuntu machine at the
> University. Is this a bug with the Fedora package?
>
Both work for me on F11:
$ grep --color=always foo somefile | less -R
$ grep --color=always foo somefile | less -r
Works even if I alias grep to 'grep --color=always'
Are you doing something different?
Siddhesh
--
http://siddhesh.in
More information about the fedora-list
mailing list