<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mac OS X color showing ESC[whatever for git-diff colors (and more)</title>
	<atom:link href="http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/feed/" rel="self" type="application/rss+xml" />
	<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/</link>
	<description>a programming blog</description>
	<lastBuildDate>Wed, 14 Sep 2011 21:12:34 -0800</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jon Erdman</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-35861</link>
		<dc:creator>Jon Erdman</dc:creator>
		<pubDate>Thu, 25 Aug 2011 06:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-35861</guid>
		<description>Thanks, fixed me on Ubuntu/Debian.</description>
		<content:encoded><![CDATA[<p>Thanks, fixed me on Ubuntu/Debian.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: not-just-yeti</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-35858</link>
		<dc:creator>not-just-yeti</dc:creator>
		<pubDate>Sat, 13 Aug 2011 13:25:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-35858</guid>
		<description>Thanks, &lt;code&gt;git diff&lt;/code&gt; and &lt;code&gt;git show&lt;/code&gt; now work like a charm for me; in fact, they are positively beautiful in color.  (I&#039;d previously been kludging by using &lt;code&gt;git diff --no-color ...&lt;/code&gt;.)

Reading &lt;code&gt;less&lt;/code&gt;&#039;s man page also led me to its options &lt;code&gt;--no-init&lt;/code&gt; [leave the file on-screen after finishing, rather than restore the terminal window to its pre-&lt;code&gt;less&lt;/code&gt; state] and &lt;code&gt;--quit-if-one-screen&lt;/code&gt;, both helpful in non-&lt;code&gt;git&lt;/code&gt; contexts.  (However, &lt;code&gt;--quit-if-one-screen&lt;/code&gt; &lt;strong&gt;without&lt;/strong&gt; &lt;code&gt;--no-init&lt;/code&gt; is truly scary: it makes me think short files are entirely empty, since it immediately over-draws what it just displayed!)

Oddly:  If the environment variable &lt;code&gt;$LESS&lt;/code&gt; is entirely unset, the defaults work well (as @Lantrix suggests).  However, setting &lt;code&gt;$LESS&lt;/code&gt; to anything at all (even the empty string) suddenly yields all-options-off rather than default-options.  (I&#039;m using OS X 10.6..8, and &lt;code&gt;less --version&lt;/code&gt; reports &quot;less 418&quot;.)</description>
		<content:encoded><![CDATA[<p>Thanks, <code>git diff</code> and <code>git show</code> now work like a charm for me; in fact, they are positively beautiful in color.  (I&#8217;d previously been kludging by using <code>git diff --no-color ...</code>.)</p>
<p>Reading <code>less</code>&#8217;s man page also led me to its options <code>--no-init</code> [leave the file on-screen after finishing, rather than restore the terminal window to its pre-<code>less</code> state] and <code>--quit-if-one-screen</code>, both helpful in non-<code>git</code> contexts.  (However, <code>--quit-if-one-screen</code> <strong>without</strong> <code>--no-init</code> is truly scary: it makes me think short files are entirely empty, since it immediately over-draws what it just displayed!)</p>
<p>Oddly:  If the environment variable <code>$LESS</code> is entirely unset, the defaults work well (as @Lantrix suggests).  However, setting <code>$LESS</code> to anything at all (even the empty string) suddenly yields all-options-off rather than default-options.  (I&#8217;m using OS X 10.6..8, and <code>less --version</code> reports &#8220;less 418&#8243;.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo Parada</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-35856</link>
		<dc:creator>Ricardo Parada</dc:creator>
		<pubDate>Fri, 12 Aug 2011 20:27:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-35856</guid>
		<description>Thank you so much.  For months I struggled to get colors to display correctly in Terminal when using git.  I looked in all the wrong places and tried all kinds of things.  And your post helped me fix this problem.</description>
		<content:encoded><![CDATA[<p>Thank you so much.  For months I struggled to get colors to display correctly in Terminal when using git.  I looked in all the wrong places and tried all kinds of things.  And your post helped me fix this problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Cunnie</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-35854</link>
		<dc:creator>Brian Cunnie</dc:creator>
		<pubDate>Sun, 07 Aug 2011 17:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-35854</guid>
		<description>Thanks, I was having the same problem under FreeBSD.</description>
		<content:encoded><![CDATA[<p>Thanks, I was having the same problem under FreeBSD.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlo</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-35847</link>
		<dc:creator>Carlo</dc:creator>
		<pubDate>Mon, 30 May 2011 05:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-35847</guid>
		<description>Thanks, that did the trick on our Linux HPC.</description>
		<content:encoded><![CDATA[<p>Thanks, that did the trick on our Linux HPC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fwip</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-35817</link>
		<dc:creator>fwip</dc:creator>
		<pubDate>Fri, 22 Apr 2011 18:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-35817</guid>
		<description>Thanks a ton. Also, pablitostar, you get my nomination for most helpful comment.</description>
		<content:encoded><![CDATA[<p>Thanks a ton. Also, pablitostar, you get my nomination for most helpful comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-32572</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Wed, 19 May 2010 04:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-32572</guid>
		<description>Thanks a lot! Very helpful =)</description>
		<content:encoded><![CDATA[<p>Thanks a lot! Very helpful =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-32561</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Tue, 18 May 2010 16:58:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-32561</guid>
		<description>You are my hero for today!</description>
		<content:encoded><![CDATA[<p>You are my hero for today!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bart van Deenen</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-31124</link>
		<dc:creator>Bart van Deenen</dc:creator>
		<pubDate>Sat, 13 Mar 2010 17:08:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-31124</guid>
		<description>Thanks. Your post fixed my issues on OpenSuse 11.2.</description>
		<content:encoded><![CDATA[<p>Thanks. Your post fixed my issues on OpenSuse 11.2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gopala Krishna A</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-30838</link>
		<dc:creator>Gopala Krishna A</dc:creator>
		<pubDate>Tue, 02 Mar 2010 17:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-30838</guid>
		<description>Thanks a lot!! This really proved helpful on opensuse 11.2 :)</description>
		<content:encoded><![CDATA[<p>Thanks a lot!! This really proved helpful on opensuse 11.2 <img src='http://eigenjoy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silly Avatar</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-30549</link>
		<dc:creator>Silly Avatar</dc:creator>
		<pubDate>Sun, 21 Feb 2010 21:39:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-30549</guid>
		<description>Thanx for this blog entry.
Was having this problem while ssh-ing to a linux vps w/Putty. Thought it was a faulty terminal emulation causing the problem. Nope, just the goofy default LESS options in OpenSuSe on the vps. I&#039;ve run linux boxen for years off and on. Never had so much problem with raw ESC character output til it was highlighted by git.</description>
		<content:encoded><![CDATA[<p>Thanx for this blog entry.<br />
Was having this problem while ssh-ing to a linux vps w/Putty. Thought it was a faulty terminal emulation causing the problem. Nope, just the goofy default LESS options in OpenSuSe on the vps. I&#8217;ve run linux boxen for years off and on. Never had so much problem with raw ESC character output til it was highlighted by git.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Girish KS</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-29186</link>
		<dc:creator>Girish KS</dc:creator>
		<pubDate>Mon, 04 Jan 2010 04:37:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-29186</guid>
		<description>Thanks for the post Nate and thanks pablitostar for your suggestion. I started using git few days back and was totally annoyed by ESC chars in diff !</description>
		<content:encoded><![CDATA[<p>Thanks for the post Nate and thanks pablitostar for your suggestion. I started using git few days back and was totally annoyed by ESC chars in diff !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pablitostar</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-28435</link>
		<dc:creator>pablitostar</dc:creator>
		<pubDate>Fri, 04 Dec 2009 18:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-28435</guid>
		<description>I found using the -r flag did fix git-diff, but it broke something else in less. Specifically, searching in files using less. The token would be found, but some of the matching lines would be hidden. Not very useful, that. I changed the less flag from -r to -R and both git-diff and less search works. Here&#039;s a snippet from the less man page, which is very apropos to git-diff:
       -R or --RAW-CONTROL-CHARS
	      Like -r, but only ANSI &quot;color&quot; escape sequences  are  output  in
	      &quot;raw&quot; form.  Unlike -r, the screen appearance is maintained cor-
	      rectly  in  most	cases.	 ANSI  &quot;color&quot;	escape	sequences  are
	      sequences of the form:

		   ESC [ ... m</description>
		<content:encoded><![CDATA[<p>I found using the -r flag did fix git-diff, but it broke something else in less. Specifically, searching in files using less. The token would be found, but some of the matching lines would be hidden. Not very useful, that. I changed the less flag from -r to -R and both git-diff and less search works. Here&#8217;s a snippet from the less man page, which is very apropos to git-diff:<br />
       -R or &#8211;RAW-CONTROL-CHARS<br />
	      Like -r, but only ANSI &#8220;color&#8221; escape sequences  are  output  in<br />
	      &#8220;raw&#8221; form.  Unlike -r, the screen appearance is maintained cor-<br />
	      rectly  in  most	cases.	 ANSI  &#8220;color&#8221;	escape	sequences  are<br />
	      sequences of the form:</p>
<p>		   ESC [ &#8230; m</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohit Garg</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-27913</link>
		<dc:creator>Rohit Garg</dc:creator>
		<pubDate>Fri, 16 Oct 2009 11:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-27913</guid>
		<description>Hi, 

Thanks for your googling and your blog. I was having the same issues on opensuse 11.1.  

http://rpg-314.blogspot.com/2009/10/getting-colors-i-git-output-on-opensuse.html

This post helped me fix it. Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Thanks for your googling and your blog. I was having the same issues on opensuse 11.1.  </p>
<p><a href="http://rpg-314.blogspot.com/2009/10/getting-colors-i-git-output-on-opensuse.html" rel="nofollow">http://rpg-314.blogspot.com/2009/10/getting-colors-i-git-output-on-opensuse.html</a></p>
<p>This post helped me fix it. Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lantrix</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-27692</link>
		<dc:creator>Lantrix</dc:creator>
		<pubDate>Tue, 06 Oct 2009 08:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-27692</guid>
		<description>Looks like this is fixed under Snow Leopard. I get colours with my config set correctly in ~/.gitconfig and I _did not_ need to have the less switches in my ~/.profile</description>
		<content:encoded><![CDATA[<p>Looks like this is fixed under Snow Leopard. I get colours with my config set correctly in ~/.gitconfig and I _did not_ need to have the less switches in my ~/.profile</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giorgio Gonnella</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-26049</link>
		<dc:creator>Giorgio Gonnella</dc:creator>
		<pubDate>Sun, 09 Aug 2009 12:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-26049</guid>
		<description>Thank you very much! I had exactly the same problem, now is solved. I wish this was documented in git tutorials, although is not directly git related...</description>
		<content:encoded><![CDATA[<p>Thank you very much! I had exactly the same problem, now is solved. I wish this was documented in git tutorials, although is not directly git related&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Björn Skoglund</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-21283</link>
		<dc:creator>Björn Skoglund</dc:creator>
		<pubDate>Fri, 17 Apr 2009 09:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-21283</guid>
		<description>Weird stuff, your post fixed my colors on OpenSuSE at work but strangely enough I have had no problems on my Leopard iMac at home.</description>
		<content:encoded><![CDATA[<p>Weird stuff, your post fixed my colors on OpenSuSE at work but strangely enough I have had no problems on my Leopard iMac at home.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: binOr</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-11840</link>
		<dc:creator>binOr</dc:creator>
		<pubDate>Tue, 24 Feb 2009 09:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-11840</guid>
		<description>Thank you so much! I was annoyed by &quot;^M&quot; &#039;s  at the end of the diff lines. Now they are gone!</description>
		<content:encoded><![CDATA[<p>Thank you so much! I was annoyed by &#8220;^M&#8221; &#8217;s  at the end of the diff lines. Now they are gone!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sir Bode Rafael</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-5664</link>
		<dc:creator>Sir Bode Rafael</dc:creator>
		<pubDate>Tue, 03 Feb 2009 00:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-5664</guid>
		<description>Hi!

Thanks for this Post!

I was experiencing this kind of trouble since I&#039;ve started working on git!

Best Brazilian Regards!</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Thanks for this Post!</p>
<p>I was experiencing this kind of trouble since I&#8217;ve started working on git!</p>
<p>Best Brazilian Regards!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cygo</title>
		<link>http://eigenjoy.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/comment-page-1/#comment-381</link>
		<dc:creator>cygo</dc:creator>
		<pubDate>Mon, 22 Sep 2008 09:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.xcombinator.com/2008/07/23/mac-os-x-color-showing-escwhatever-for-git-diff-colors-and-more/#comment-381</guid>
		<description>&quot;After perusing the man page for a while ...&quot;

Maybe it&#039;s a bit easier to scan man pages for essential information using:

pman, http://snippets.dzone.com/posts/show/4274

or

openman, http://codesnippets.joyent.com/posts/show/1599


Just a not-quite-on-topic tip! 

And thanks for sharing the export LESS=&quot;-erX&quot; hint!</description>
		<content:encoded><![CDATA[<p>&#8220;After perusing the man page for a while &#8230;&#8221;</p>
<p>Maybe it&#8217;s a bit easier to scan man pages for essential information using:</p>
<p>pman, <a href="http://snippets.dzone.com/posts/show/4274" rel="nofollow">http://snippets.dzone.com/posts/show/4274</a></p>
<p>or</p>
<p>openman, <a href="http://codesnippets.joyent.com/posts/show/1599" rel="nofollow">http://codesnippets.joyent.com/posts/show/1599</a></p>
<p>Just a not-quite-on-topic tip! </p>
<p>And thanks for sharing the export LESS=&#8221;-erX&#8221; hint!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

