Sean P. DeNigris wrote
Because we're looking for "count" number of items all at once, if the input is shorter than this, it will never return unless an EOF is sent
Digging further, I found that the "count" is always 2048 because read buffering is enabled for io streams. When reading a normal file, we have two options - we read the number of characters we were looking for, or we reach EOF first. With stdin however, there is a third option, which is - there aren't enough chars available to fill the buffer and there is also no EOF encountered. The following returns successfully after a line is typed in the terminal (ending in newline): in := FileStream stdin. in disableReadBuffering. "Really only look for the requested number of characters" in next. Here's an issue: http://code.google.com/p/pharo/issues/detail?id=5800 The attached changeset fixes stdin. -- View this message in context: http://forum.world.st/Standard-input-in-Pharo-tp2173080p4607687.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.