Determine if chars arrive within a time limit
Source position: amigados.pas line 2232
function WaitForChar( |
File_: Pointer; |
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) |