colordiff nocolor patch

Dave Ewart davee at sungate.co.uk
Mon Dec 15 21:54:35 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

- -- 
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)

iD8DBQFJRtIbnhBnac0o2pIRAp9xAKDdaCmjuT1dMQmMFwf6GoFi+cxKZQCfTIdp
V9KYljp/wXV6IvpqxZ/I0OY=
=IYSG
-----END PGP SIGNATURE-----



More information about the Ubuntu-motu mailing list