Nessesarius / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

When piping colordiff output to diff no colors appears #161

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run colordiff file1 file2
2. run colordiff file1 file2|less

What is the expected output? What do you see instead?
I expect to get the colored output in both cases. But when I'm piping the
output through less the output is not colored and instead it has ESC[0;0m
sequences around the output.

What version of the product are you using? On what operating system?
$ colordiff --version
diff (GNU diffutils) 2.8.7
mintty 0.5.7
less 429
MS Windows Vista 64 bit

Please provide any additional information below.
I'm not sure if this is the best place to file the issue. If not plz let me
know where I should put it.

Original issue reported on code.google.com by aleksand...@gmail.com on 10 Feb 2010 at 3:50

GoogleCodeExporter commented 8 years ago
I've rushed too much with this report. It seems that in Gnome Terminal the same
problem appears, so this is not mintty's fault

Original comment by aleksand...@gmail.com on 10 Feb 2010 at 4:14

GoogleCodeExporter commented 8 years ago
Try 'less -R', which tells 'less' to pass colour-setting sequences through to 
the
terminal. (I've got an alias for that in my ~/.profile.)

Original comment by andy.koppe on 10 Feb 2010 at 5:38