intrflush(3cur)
NAME
intrflush − enable flush on interrupt
SYNTAX
intrflush(win, bf)
WINDOW ∗win;
bool bf;
DESCRIPTION
If intrflush is enabled, pressing an interrupt key (interrupt, break, quit) flushes all output in the tty driver queue. This gives the effect of a faster response to the interrupt but causes the curses program to have an inaccurate picture of what is on the screen. Disabling the option prevents the flush.
The default for the option is dependant on the tty driver settings. You have to force the terminal into the state you require. The window argument is ignored.