typeahead Subroutine

Purpose

Controls checking for typeahead.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>

int typeahead
(int fildes);

Description

The typeahead subroutine controls the detection of typeahead during a refresh, based on the value of fildes:

Parameters

Item Description
fildes  

Return Value

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

Example

To turn typeahead checking on, enter:

typeahead(1);