Jan. 30, 2012
12:17 p.m.
On Mon, Jan 30, 2012 at 07:44:40AM -0300, Guillermo Polito wrote:
FileStream stdout nextPutAll: 'something';crlf.
Works great, but
FileStream stdin next.
Never returns :/. Whatever I try.
Any idea?
This is because no data was received on the standard input stream. Try typing something followed by <enter> so that the operating system terminal actually sends some data. By default, the stdin, stdout, and stderr streams are all in blocking mode unless you set them otherwise. If you want to set the stdin to nonblocking mode, see #setNonBlocking in package OSProcess. Note that there is no "correct" setting for this, it depends on what you are trying to do with the stream. HTH, Dave