From: Eric Hodel Date: 2006-12-09T09:26:14+09:00 Subject: Re: autotest, unit-diff, and color output? On Dec 8, 2006, at 09:26 , Rob Sanheim wrote: > I'm using autotest with all its test driven goodness, and I believe > that uses unit-diff to present a "saner" view of test difference > output. It does. > I'd like to do colorize the output from unit-diff so its similar to > what you see on a changeset on trac, for instance. Does anyone know > anything that can colorize diffs in ruby, or know of a good starting > point? Or at least where to start for outputting color in the > terminal, so I can do "#{color.red} stuff" instead of using control > characters. The easiest way to do this is to write (or find) a color-capable diff executable. This way you don't have to change unit_diff, just your path. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net I LIT YOUR GEM ON FIRE!