HPlogo HP-UX Reference Volume 4 of 5 > i

intrflush(3X)

CURSES
» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

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

Input Processing in curses_intro(3X), <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.

© Hewlett-Packard Development Company, L.P.