<?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: Checking for STDIN in ruby</title>
	<atom:link href="http://blog.footle.org/2008/08/21/checking-for-stdin-inruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.footle.org/2008/08/21/checking-for-stdin-inruby/</link>
	<description>(intr.v.) 1. To waste time; trifle. 2. To talk nonsense. (n.) Nonsense; foolishness</description>
	<lastBuildDate>Mon, 10 May 2010 23:21:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: brad</title>
		<link>http://blog.footle.org/2008/08/21/checking-for-stdin-inruby/comment-page-1/#comment-1246</link>
		<dc:creator>brad</dc:creator>
		<pubDate>Tue, 16 Mar 2010 13:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.footle.org/?p=88#comment-1246</guid>
		<description>That doesn&#039;t work for me on OS X. $stdin.tty? blocks waiting for input if there&#039;s nothing on STDIN. It also doesn&#039;t work if the input is not coming directly from the terminal. Try &lt;code&gt;echo &quot;hello&quot; &#124; ruby stdin-test.rb&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>That doesn&#8217;t work for me on OS X. $stdin.tty? blocks waiting for input if there&#8217;s nothing on STDIN. It also doesn&#8217;t work if the input is not coming directly from the terminal. Try <code>echo "hello" | ruby stdin-test.rb</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Syme</title>
		<link>http://blog.footle.org/2008/08/21/checking-for-stdin-inruby/comment-page-1/#comment-1245</link>
		<dc:creator>Rob Syme</dc:creator>
		<pubDate>Tue, 16 Mar 2010 08:03:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.footle.org/?p=88#comment-1245</guid>
		<description>You might also want to try:

puts @stdin.tty? ? &quot;stdin.tty is true&quot; : &quot;stdin.tty is false&quot;</description>
		<content:encoded><![CDATA[<p>You might also want to try:</p>
<p>puts @stdin.tty? ? &#8220;stdin.tty is true&#8221; : &#8220;stdin.tty is false&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joao</title>
		<link>http://blog.footle.org/2008/08/21/checking-for-stdin-inruby/comment-page-1/#comment-1236</link>
		<dc:creator>joao</dc:creator>
		<pubDate>Tue, 19 Jan 2010 14:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.footle.org/?p=88#comment-1236</guid>
		<description>thank you! another perfect fit. I&#039;m a newbie and expected an IO#peek or something...</description>
		<content:encoded><![CDATA[<p>thank you! another perfect fit. I&#8217;m a newbie and expected an IO#peek or something&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dohzya</title>
		<link>http://blog.footle.org/2008/08/21/checking-for-stdin-inruby/comment-page-1/#comment-1205</link>
		<dc:creator>dohzya</dc:creator>
		<pubDate>Mon, 02 Mar 2009 14:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.footle.org/?p=88#comment-1205</guid>
		<description>thanks a lot !

It&#039;s exactly what I was looking for for my script</description>
		<content:encoded><![CDATA[<p>thanks a lot !</p>
<p>It&#8217;s exactly what I was looking for for my script</p>
]]></content:encoded>
	</item>
</channel>
</rss>
