Determine if chars arrive within a time limit
Source position: amigados.pas line 1739
function WaitForChar( |
file_: LongInt; |
timeout: LongInt |
):LongBool; |
file_ |
|
BCPL pointer to a file handle |
timeout |
|
In miliseconds |
If a character is available to be read from file within the time (in microseconds) indicated by timeout, WaitForChar() returns -1 (True). If a character is available, you can use Read() to read it. Note that WaitForChar() is only valid when the I/O stream is connected to a virtual terminal device. If a character is not available within timeout, a 0 (False) is returned.
|
Read bytes of data from a file |
|
|
Read a character from the specified input (buffered) |