colordiff nocolor patch
davee at sungate.co.uk
Mon Dec 15 21:54:35 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
On Monday, 15.12.2008 at 18:11 +0100, Mario Schwalbe wrote:
> I'd like to propose a small patch for colordiff.
> I like this tool, but right now colordiff still tries to colorize
> output if redirected to a file. This patch (taken from colorgcc)
> disables colorization in that case. In addition, it also adds a
> configuration option nocolor to disable colorization for specific
> terminal types.
Thanks for your patch. colordiff has had support for switching off
colorisation when redirected to a file for some time now, since version
1.0.6. Against which version of colordiff is your patch?
There is currently no support for terminal-based disabling, though,
which might be appropriate.
Dave Ewart davee at sungate.co.uk, jabber:davee at jabber.org, freenode:davee
All email from me is now digitally signed, http://www.sungate.co.uk/
Fingerprint: AEC5 9360 0A35 7F66 66E9 82E4 9E10 6769 CD28 DA92
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the Ubuntu-motu