1typeahead(3XCURSES)     X/Open Curses Library Functions    typeahead(3XCURSES)
2
3
4

NAME

6       typeahead - check for type-ahead characters
7

SYNOPSIS

9       cc [ flag... ] file... -I /usr/xpg4/include  -L  /usr/xpg4/lib \
10        -R  /usr/xpg4/lib  -lcurses  [ library... ]
11
12       c89 [ flag... ] file... -lcurses [ library... ]
13
14       #include <curses.h>
15
16       int typeahead(int fd);
17
18

PARAMETERS

20       fd    Is the file descriptor that is used to check for type-ahead char‐
21             acters.
22
23

DESCRIPTION

25       The typeahead() function specifies the file descriptor (fd) to  use  to
26       check  for  type-ahead characters (characters typed by the user but not
27       yet  processed by X/Open Curses).
28
29
30       X/Open Curses  checks  for  type-ahead  characters  periodically  while
31       updating  the  screen.   If characters are found, the current update is
32       postponed until the next  refresh(3XCURSES) or doupdate(3XCURSES). This
33       speeds  up  response to commands that have been typed ahead.  Normally,
34       the input file pointer passed to newterm(3XCURSES), or  stdin   in  the
35       case of initscr(3XCURSES), is used for type-ahead checking.
36
37
38       If fd is -1, no type-ahead checking is done.
39

RETURN VALUES

41       On  success, the typeahead() function returns OK. Otherwise, it returns
42       ERR.
43

ERRORS

45       None.
46

ATTRIBUTES

48       See attributes(5) for descriptions of the following attributes:
49
50
51
52
53       ┌─────────────────────────────┬─────────────────────────────┐
54       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
55       ├─────────────────────────────┼─────────────────────────────┤
56       │Interface Stability          │Standard                     │
57       ├─────────────────────────────┼─────────────────────────────┤
58       │MT-Level                     │Unsafe                       │
59       └─────────────────────────────┴─────────────────────────────┘
60

SEE ALSO

62       doupdate(3XCURSES),         getch(3XCURSES),         initscr(3XCURSES),
63       libcurses(3XCURSES), attributes(5), standards(5)
64
65
66
67SunOS 5.11                        5 Jun 2002               typeahead(3XCURSES)
Impressum