Why is it that when I pipe svn diff output to, say less, I get a bunch of ESC characters?
$ svn diff | less
Index: test/unit/tour_guide_tip_test.rb
===================================================================
ESC[1;31m--- test/unit/tour_guide_tip_test.rb (revision 0)ESC[0;0m
ESC[1;34m+++ test/unit/tour_guide_tip_test.rb (revision 66)ESC[0;0m
ESC[1;35m@@ -0,0 +1,7 @@ESC[0;0m
ESC[1;34m+require 'test_helper'ESC[0;0m
ESC[1;34m+ESC[0;0m
ESC[1;34m+class TourGuideTipTest < ActiveSupport::TestCaseESC[0;0m
ESC[1;34m+ # test "the truth" doESC[0;0m
ESC[1;34m+ # assert trueESC[0;0m
ESC[1;34m+ # endESC[0;0m
ESC[1;34m+endESC[0;0m
However, if I direct output to a file (svn diff > whatever.diff) and then less whatever.diff it looks fine?
$ svn diff > whatever.diff
$ less whatever.diff
Index: test/unit/tour_guide_tip_test.rb
===================================================================
--- test/unit/tour_guide_tip_test.rb (revision 0)
+++ test/unit/tour_guide_tip_test.rb (revision 66)
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class TourGuideTipTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end