DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

intrflush(3curses)


intrflush -- enable or disable flush on interrupt

Synopsis

cc [options] file -lcurses
#include <curses.h>

int intrflush(WINDOW *win, bool bf);

Description

The intrflush(3curses) function specifies whether pressing an interrupt key (interrupt, suspend or quit) will flush the input buffer associated with the current screen. If the value of bf is TRUE, then flushing of the output buffer associated with the current screen will occur when an interrupt key (interrupt, suspend, or quit) is pressed. If the value of bf is FALSE then no flushing of the buffer will occur when an interrupt key is pressed The default for the option is inherited from the display driver settings. The win argument is ignored.

Return value

Upon successful completion, intrflush(3curses) returns OK. Otherwise, it returns ERR.

Errors

No errors are defined.

Usage

The same effect is achieved outside Curses using the NOFLSH local mode flag specified in the XBD specification (General Terminal Interface).

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

``Input Processing'', curses(4), termio(7)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004