typeahead(3cur) typeahead(3cur)
Name
typeahead - check for typeahead
Syntax
int typeahead(fd)
int fd;
Description
If is enabled, the program looks for typeahead input periodically while updating the screen. If input is found, the current update will be
postponed until or is called again. This allows faster response to commands typed in advance.
Normally, the input FILE pointer passed to the routine, will be used to do this typeahead checking. If the routine was called, the input
FILE pointer is passed to
The routine specifies that the file descriptor is to be used to check for typeahead. If is -1, then typeahead is disabled.
Return Values
No return values are defined for this function.
See Also
doupdate(3cur), initscr(3cur), newterm(3cur), refresh(3cur)
typeahead(3cur)