clear stdin and ignore any data left in buffer