Flushing stdout to get prompt.