Waits for the given number of bytes to be put into TeraTerm macro received buffer.
waitn <received byte count> mwaitn <received byte count>
Pauses until the given number of bytes are received from the host, or until the timeout occurs.
If the system variable "timeout" is greater than zero, the timeout occurs when <timeout> seconds have passed. If the "timeout" is less than or equal to zero, the timeout never occurs.
When a user uses the mwaitn command, the measure of waiting time is millisecond.
These commands return one of the following values in the system variable "result":
|0||Timeout. No data has received.|
; The timeout limit is 30 sec. timeout = 30 ; Clear the received buffer. flushrecv ; Wait for more than 255 bytes. waitn 255