[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 2

intrflush Subroutine

Purpose

Enables or disables flush on interrupt.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>


int intrflush(WINDOW * win,
bool bf);

Description

The intrflush subroutine 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.

Parameters

bf  
*win Specifies the window for which to enable or disable queue flushing.

Return Values

Upon successful completion, the intrflush subroutine returns OK. Otherwise, it returns ERR.

Examples

  1. To enable queue flushing in the user-defined window my_window, enter:

    intrflush(my_window, TRUE);
  2. To disable queue flushing in the user-defined window my_window, enter:

    intrflush(my_window, FALSE);

Related Information

List of Curses Subroutines in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.

Setting Video Attributes and Curses Options in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]