NAME
intrflush — enable or disable flush on interrupt
SYNOPSIS
#include <curses.h>
int intrflush(WINDOW *win, bool bf);
DESCRIPTION
The
intrflush()
function specifies whether pressing an interrupt key
(interrupt, suspend or quit) will flush the input buffer associated with
the current screen.
If bf is TRUE, pressing an interrupt key will flush this input buffer.
If bf is FALSE, pressing an interrupt key will not flush this input
buffer. The default for the option is inherited from the
display driver settings. The win argument must refer to a window
associated with the current screen.
RETURN VALUE
Upon successful completion,
intrflush()
returns OK. Otherwise, it returns ERR.
ERRORS
No errors are defined.
APPLICATION USAGE
The same effect is achieved outside Curses using the NOFLSH local mode flag
specified in the
X/Open System Interface Definitions, Issue 4, Version 2
specification (
General Terminal Interface).
SEE ALSO
curses_intro(3X),
see subsection
Input Processing,
<curses.h>,
X/Open System Interface Definitions, Issue 4, Version 2
specification, Section 9.2,
Parameters That Can Be Set.
CHANGE HISTORY
First released in X/Open Curses, Issue 2.
X/Open Curses, Issue 4
The entry is rewritten for clarity.