intrflush(3cur)intrflush(3cur)Nameintrflush - enable flush on interrupt
int intrflush(win, bf)
If 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 program to have an
inaccurate picture of what is on the screen. Disabling the option pre‐
vents the flush.
The default for the option is dependent on the tty driver settings.
You have to force the terminal into the state you require. The window
argument is ignored.
The function returns OK on success and ERR on error.