flush stdin before asking for input
Merge pull request #658 from ros/flush_stdin

flush stdin before asking for input