flush stdin before asking for input