colordiff nocolor patch

Mario Schwalbe schwalbe at
Mon Dec 15 17:11:14 GMT 2008


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 & ciao,

 Wo das Chaos auf die Ordnung trifft, gewinnt meist das Chaos,
 weil es besser organisiert ist.
     - Friedrich Nietzsche -

    _____    ________
   /     \  /   ____/  Mario Schwalbe
  /  \ /  \ \____  \
 /    Y    \/       \  eMail: schwalbe at,
 \____|__  /______  /         ms790178 at
         \/       \/

          key ID: 7DA9 DAFF
      public key:
 key fingerprint: 2979 AA20 4A93 B527 90CC  45E5 4B28 511A 7DA9 DAFF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colordiff.patch
Type: text/x-patch
Size: 1258 bytes
Desc: not available
Url : 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : 

More information about the Ubuntu-motu mailing list