in reply to Re^2: how to read STDIN interactively
in thread how to read STDIN interactively

...excuse me, 2nd to the last example