<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pratthost Developer Zone &#187; Mac OS X</title>
	<atom:link href="http://devzone.pratthost.com/category/mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://devzone.pratthost.com</link>
	<description>A resource for web developers</description>
	<lastBuildDate>Tue, 29 Jun 2010 18:47:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Turn Off Word Wrap in Leopard Terminal</title>
		<link>http://devzone.pratthost.com/2008/09/16/turn-off-word-wrap-in-leopard-terminal/</link>
		<comments>http://devzone.pratthost.com/2008/09/16/turn-off-word-wrap-in-leopard-terminal/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 19:07:30 +0000</pubDate>
		<dc:creator>Josh Pratt</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://devzone.pratthost.com/?p=55</guid>
		<description><![CDATA[As I said in the post prior to this, I have really been enjoying using Terminal for accessing MySQL databases. I found a problem with it though. If you have a table with a lot of columns, or a column with a lot of data in it, Terminal will wrap the results of your query [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://devzone.pratthost.com/wp-content/uploads/2008/09/terminal_icon.jpg" rel="lightbox[55]"><img src="http://devzone.pratthost.com/wp-content/uploads/2008/09/terminal_icon.jpg" alt="" title="Terminal Icon" width="90" height="90" class="alignleft size-medium wp-image-49" /></a></p>
<p>As I said in the post prior to this, I have really been enjoying using Terminal for accessing MySQL databases.  I found a problem with it though.  If you have a table with a lot of columns, or a column with a lot of data in it, Terminal will wrap the results of your query making it almost completely unreadable (or a pain to read at best).<br />
<br style="clear: both" /></p>
<div style="width: 300px; margin: 0 auto"><a href="http://devzone.pratthost.com/wp-content/uploads/2008/09/mysql_wrap.jpg" rel="lightbox[55]"><img src="http://devzone.pratthost.com/wp-content/uploads/2008/09/mysql_wrap-300x256.jpg" alt="" title="Mysql Terminal Wrap" width="300" height="256" class="aligncenter size-medium wp-image-56" /></a></div>
<p></p>
<p>I found a work-around.  Though it isn&#8217;t as good as it could be, it does work.  It prevents the wrap, but, everything beyond the right-side of your terminal window is completely removed.  It doesn&#8217;t give you a scroll bar to see beyond, it is literally gone.  If you try to resize your window, you&#8217;ll just get blank space.</p>
<div style="width: 300px; margin: 0 auto"><a href="http://devzone.pratthost.com/wp-content/uploads/2008/09/mysql_nowrap.jpg" rel="lightbox[55]"><img src="http://devzone.pratthost.com/wp-content/uploads/2008/09/mysql_nowrap-300x80.jpg" alt="" title="Mysql Terminal No Wrap" width="300" height="80" class="aligncenter size-medium wp-image-57" /></a></div>
<p></p>
<p>Why Terminal doesn&#8217;t have the ability to turn it on or off is a mystery to me.  But, that said, this fix does have it&#8217;s place, and it is fairly easy to turn on and off.  Here&#8217;s what you do:</p>
<p>Open this file:  $YOURHOME/.bashrc  and place the following in there and save it:</p>
<p><code># Wordwrap off<br />
echo -e "\e[?7l\c"</code></p>
<p>After it is saved, you can close Terminal and re-open it, or restart bash with this command:</p>
<p><code>. ~/.bashrc</code></p>
<p>To turn it off again, just remove or comment out the echo statement you added to .bashrc and restart bash again.</p>
<p>If you have any better suggestions for this, please let me know!  I&#8217;d love to have a better solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://devzone.pratthost.com/2008/09/16/turn-off-word-wrap-in-leopard-terminal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
