On Wed, Mar 05, 2003 at 10:37:33AM -0800, Spundun Bhatt wrote:
> On Wed, 2003-03-05 at 10:18, Matthew Gatto wrote:
> > On Wed, Mar 05, 2003 at 06:20:30AM -0600, Alec Berryman wrote:
> > > > Is there a reason why etc-update doesn't use colors in the output, just like 
> > > > emerge? This could make it much more easy to merge files.
> > > 
> > > It's not etc-update that doesn't do color, it's diff.  Check out your
> > > /etc/etc-update.conf for instructions on switching to vimdiff.
> > 
> > There is also colordiff, if you ain't into vim. It's a tiny little
> > wrapper on diff with the same syntax as diff and therefore appropriate
> > for use in the etc-update.conf.
> I tried emerging it right now.... though I havent tried rebooting the
> machine :) ... right now colordiff is not coloring context diffs. It
> colors standard diffs but at the end it leaves the color it last used to
> color the text... so after a test diff, I got evrything else that came
> next on the shell(e.g. ls out put) in green. Using gnome terminal.
> Spundun

yeah I it only colorizes basic and unified diffs. check out
/usr/doc/colordiff-*/BUGS

It appears to be a tiny bit broken because it doesnt add escape
sequences to turn off color. Try changing to this in etc-update.conf:

diff_command="colordiff -uN %file1 %file2; echo -e '\033[0m'"

works for me.

--
[EMAIL PROTECTED] mailing list

Reply via email to