Control flushing of the output buffer when an interrupt key is pressed. If flag is true, pressing an interrupt key (interrupt, break, or quit) flushes all output in the terminal driver queue. If flag is false, no flushing is done.
curses/intrflush
intrflush