Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

intrflush(3cur)

Name

intrflush − enable flush on interrupt

Syntax

#include <cursesX.h>

int intrflush(win, bf)
WINDOW ∗win;
bool bf;

Description

If intrflush 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 curses program to have an inaccurate picture of what is on the screen. Disabling the option prevents 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. 

Return Values

The intrflush function returns OK on success and ERR on error.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026