[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep coloring 'restores' incorrectly
From: |
Matthew Woehlke |
Subject: |
Re: grep coloring 'restores' incorrectly |
Date: |
Mon, 11 Dec 2006 14:07:53 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.0 |
David Corbin wrote:
My current color is green. When I grep for something, If there is one
ocurrence, I get greenText redText whiteText. There should be someway to
control the color for 'non-matching text'...
How are your colors set? I see 'grep --color=yes <args> | od -c'
outputting '\e[00m' which is correct (although in my experience the
extra '0' is redundant) for 'clear formatting'. Do you see this as well?
If so, either your terminal emulator is broken or you are using a
non-standard way of setting your default color(*). If not, what output
/do/ you get ('\e[00;37,'?), and what version of grep are you using?
Are you on *nix or Windows?
(* The correct way is to tell your term-emu to make 'normal text' green.
E.g. using '\e[32m' at the end of your prompt is broken.)
--
Matthew
"Lost a planet, Obi Wan has? How embarrassing..."
-- Yoda (Star Wars II: Attack of the Clones)