Browse Subversion Repository
Contents of /trunk/doc/en/html/macro/command/waitn.html
Parent Directory
| Revision Log
Revision 3227 -
( show annotations)
( download)
( as text)
Tue Mar 24 15:10:33 2009 UTC
(15 years, 1 month ago)
by maya
File MIME type: text/html
File size: 1423 byte(s)
CVS から SVN へ移行: 改行コードを LF から CR+LF へ変換
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
2 |
"http://www.w3.org/TR/html4/strict.dtd"> |
3 |
<html> |
4 |
<head> |
5 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
6 |
<title>waitn</title> |
7 |
<meta http-equiv="Content-Style-Type" content="text/css"> |
8 |
<link rel="stylesheet" href="../../style.css" type="text/css"> |
9 |
</head> |
10 |
|
11 |
<body> |
12 |
|
13 |
|
14 |
<h1>waitn</h1> |
15 |
|
16 |
<p> |
17 |
Waits for the given number of bytes to be put into TeraTerm macro received buffer. |
18 |
</p> |
19 |
|
20 |
<pre class="macro-syntax"> |
21 |
waitn <received byte count> |
22 |
</pre> |
23 |
|
24 |
<h2>Remarks</h2> |
25 |
|
26 |
<p> |
27 |
Pauses until the given number of bytes are received from the host, or until the timeout occurs. |
28 |
</p> |
29 |
|
30 |
<p> |
31 |
If the system variable "timeout" or "mtimeout" is greater than zero, the timeout occurs when <timeout>.<mtimeout> seconds have passed. If the timeout is less than or equal to zero, the timeout never occurs. |
32 |
</p> |
33 |
|
34 |
<p> |
35 |
These commands return one of the following values in the system variable "result": |
36 |
</p> |
37 |
|
38 |
<table> |
39 |
<tr> |
40 |
<th>Value</th> |
41 |
<th>Meaning</th> |
42 |
</tr> |
43 |
<tr> |
44 |
<td>0</td> |
45 |
<td>Timeout. No data has received.</td> |
46 |
</tr> |
47 |
<tr> |
48 |
<td>1</td> |
49 |
<td>Otherwise(TBD)</td> |
50 |
</tr> |
51 |
</table> |
52 |
|
53 |
<h2>Example</h2> |
54 |
|
55 |
<pre class="macro-example"> |
56 |
; The timeout limit is 30 sec. |
57 |
timeout = 30 |
58 |
|
59 |
; Clear the received buffer. |
60 |
flushrecv |
61 |
|
62 |
; Wait for more than 255 bytes. |
63 |
waitn 255 |
64 |
</pre> |
65 |
|
66 |
</body> |
67 |
</html> |
|