Version changed. I downloaded the latest devel version using hg.

canReadLine() always returns false. The above code has not changed.

What could be the trouble?