<?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: iTerm and Growl</title>
	<atom:link href="http://damonparker.org/blog/2006/11/13/iterm-and-growl/feed/" rel="self" type="application/rss+xml" />
	<link>http://damonparker.org/blog/2006/11/13/iterm-and-growl/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=iterm-and-growl</link>
	<description>mental spew</description>
	<lastBuildDate>Wed, 17 Feb 2010 05:42:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: links for 2009-06-17 &#124; blog/shl@INTERDOSE</title>
		<link>http://damonparker.org/blog/2006/11/13/iterm-and-growl/comment-page-1/#comment-26470</link>
		<dc:creator>links for 2009-06-17 &#124; blog/shl@INTERDOSE</dc:creator>
		<pubDate>Tue, 22 Dec 2009 13:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://damonparker.org/blog/2006/11/13/iterm-and-growl/#comment-26470</guid>
		<description>[...] iTerm and Growl &#8211; damonparker.org (tags: apple shell) [...]</description>
		<content:encoded><![CDATA[<p>[...] iTerm and Growl &#8211; damonparker.org (tags: apple shell) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nobody</title>
		<link>http://damonparker.org/blog/2006/11/13/iterm-and-growl/comment-page-1/#comment-26452</link>
		<dc:creator>nobody</dc:creator>
		<pubDate>Tue, 10 Nov 2009 21:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://damonparker.org/blog/2006/11/13/iterm-and-growl/#comment-26452</guid>
		<description>[ccL_bash]growl()
{
        if [ &quot;$TERM_PROGRAM&quot; == &quot;iTerm.app&quot; -a &quot;$TERM&quot; != &quot;screen&quot; ]
        then
                echo -e $&#039;\e]9;&#039;${1}&#039;07&#039;
        else
                growlnotify -m ${1} &quot;Alert&quot;
        fi
}[/ccL_bash]</description>
		<content:encoded><![CDATA[<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">growl<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TERM_PROGRAM</span>&quot;</span> == <span style="color: #ff0000;">&quot;iTerm.app&quot;</span> <span style="color: #660033;">-a</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TERM</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;screen&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> $<span style="color: #ff0000;">'\e]9;'</span><span style="color: #800000;">${1}</span><span style="color: #ff0000;">'07'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; growlnotify <span style="color: #660033;">-m</span> <span style="color: #800000;">${1}</span> <span style="color: #ff0000;">&quot;Alert&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">fi</span><br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span></div></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Krall</title>
		<link>http://damonparker.org/blog/2006/11/13/iterm-and-growl/comment-page-1/#comment-26243</link>
		<dc:creator>Evan Krall</dc:creator>
		<pubDate>Sun, 08 Feb 2009 11:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://damonparker.org/blog/2006/11/13/iterm-and-growl/#comment-26243</guid>
		<description>Wow, so I messed that up a little bit.
That should read:

[ccL_bash]growl() { echo $&#039;\e]9;&#039;&quot;${@}&quot;$&#039;07&#039;; }[/ccL_bash]

Also, be careful about the quotes. I&#039;m not sure exactly why, but some of the quotes in my previous post got transformed to forward and backwards quotes, which will mess with things in the shell.</description>
		<content:encoded><![CDATA[<p>Wow, so I messed that up a little bit.<br />
That should read:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">growl<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> $<span style="color: #ff0000;">'\e]9;'</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">${@}</span>&quot;</span>$<span style="color: #ff0000;">'07'</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span></div></div>
<p>Also, be careful about the quotes. I&#8217;m not sure exactly why, but some of the quotes in my previous post got transformed to forward and backwards quotes, which will mess with things in the shell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Krall</title>
		<link>http://damonparker.org/blog/2006/11/13/iterm-and-growl/comment-page-1/#comment-26242</link>
		<dc:creator>Evan Krall</dc:creator>
		<pubDate>Sun, 08 Feb 2009 10:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://damonparker.org/blog/2006/11/13/iterm-and-growl/#comment-26242</guid>
		<description>You should always quote when you use arguments, unless you have a very good reason not to. Bad things happen otherwise; mostly, newlines and tabs become spaces, globs get expanded, etc. Also, what&#039;s with using echo -e and $&#039; &#039; at the same time?
Here&#039;s a better way, IMO:

growl() { echo $&#039;\e]9;&#039;&quot;${@}&quot;$&#039;07&#039; ; return ; }</description>
		<content:encoded><![CDATA[<p>You should always quote when you use arguments, unless you have a very good reason not to. Bad things happen otherwise; mostly, newlines and tabs become spaces, globs get expanded, etc. Also, what&#8217;s with using echo -e and $&#8217; &#8216; at the same time?<br />
Here&#8217;s a better way, IMO:</p>
<p>growl() { echo $&#8217;\e]9;&#8217;&#8221;${@}&#8221;$&#8217;07&#8242; ; return ; }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dag HÃ¸idahl</title>
		<link>http://damonparker.org/blog/2006/11/13/iterm-and-growl/comment-page-1/#comment-26239</link>
		<dc:creator>Dag HÃ¸idahl</dc:creator>
		<pubDate>Thu, 29 Jan 2009 09:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://damonparker.org/blog/2006/11/13/iterm-and-growl/#comment-26239</guid>
		<description>If you substitue ${1} with ${*} in the shell function, you don&#039;t need to put the notification text within quotes.</description>
		<content:encoded><![CDATA[<p>If you substitue ${1} with ${*} in the shell function, you don&#8217;t need to put the notification text within quotes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: avdempsey</title>
		<link>http://damonparker.org/blog/2006/11/13/iterm-and-growl/comment-page-1/#comment-25618</link>
		<dc:creator>avdempsey</dc:creator>
		<pubDate>Wed, 01 Aug 2007 20:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://damonparker.org/blog/2006/11/13/iterm-and-growl/#comment-25618</guid>
		<description>Works great, good tip. Now, I&#039;m gonna have to figure out how to make growl notifications work for remote jobs.</description>
		<content:encoded><![CDATA[<p>Works great, good tip. Now, I&#8217;m gonna have to figure out how to make growl notifications work for remote jobs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oudeis</title>
		<link>http://damonparker.org/blog/2006/11/13/iterm-and-growl/comment-page-1/#comment-17151</link>
		<dc:creator>oudeis</dc:creator>
		<pubDate>Mon, 15 Jan 2007 01:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://damonparker.org/blog/2006/11/13/iterm-and-growl/#comment-17151</guid>
		<description>If you want more control or use a different terminal app, you may want to look at growlnotify:
http://growl.info/documentation/growlnotify.php</description>
		<content:encoded><![CDATA[<p>If you want more control or use a different terminal app, you may want to look at growlnotify:<br />
<a href="http://growl.info/documentation/growlnotify.php" rel="nofollow">http://growl.info/documentation/growlnotify.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: damonp</title>
		<link>http://damonparker.org/blog/2006/11/13/iterm-and-growl/comment-page-1/#comment-16560</link>
		<dc:creator>damonp</dc:creator>
		<pubDate>Tue, 02 Jan 2007 19:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://damonparker.org/blog/2006/11/13/iterm-and-growl/#comment-16560</guid>
		<description>Would it have something to do with the terminal type?

From the manpage:
&lt;blockquote&gt;Each virtual terminal provides the functions of a DEC VT100 terminal&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Would it have something to do with the terminal type?</p>
<p>From the manpage:</p>
<blockquote><p>Each virtual terminal provides the functions of a DEC VT100 terminal</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://damonparker.org/blog/2006/11/13/iterm-and-growl/comment-page-1/#comment-16450</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sun, 31 Dec 2006 02:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://damonparker.org/blog/2006/11/13/iterm-and-growl/#comment-16450</guid>
		<description>Alas, it does not work under GNU Screen</description>
		<content:encoded><![CDATA[<p>Alas, it does not work under GNU Screen</p>
]]></content:encoded>
	</item>
</channel>
</rss>
