[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 2
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:
- If fildes is a valid file descriptor, the typeahead subroutine is enabled during refresh; Curses periodically checks fildes for input and aborts refresh if any character is available. (This is the initial setting, and the typeahead file descriptor corresponds to the input file associated with the screen created by the initscr or newterm subroutine.) The value of fildes need not be the file descriptor on which the refresh is occurring.
- If fildes is -1, Curses does not check for typeahead during refresh.
Parameters
Return Value
Upon successful completion, the typeahead subroutine returns OK. Otherwise, it returns ERR.
Example
To turn typeahead checking on, enter:
typeahead(1);
Implementation Specifics
This subroutine is part of Base Operating System (BOS) Runtime.
Related Information
The doupdate, getch, and initscr subroutines.
Curses Overview for Programming in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.
List of Curses Subroutines in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.
Setting Video Attributes and Curses Options in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]