Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/doc/en/html/macro/command/waitn.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1107 - (show annotations) (download) (as text)
Fri Jan 23 15:01:23 2009 UTC (4 years, 3 months ago) by maya
Original Path: doc/trunk/en/html/macro/command/waitn.html
File MIME type: text/html
File size: 1391 byte(s)
no message
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 &lt;received byte count&gt;
22 mwaitn &lt;received byte count&gt;
23 </pre>
24
25 <h2>Remarks</h2>
26
27 <p>
28 Pauses until the given number of bytes are received from the host, or until the timeout occurs.
29 </p>
30
31 <p>
32 If the system variable "timeout" or "mtimeout" is greater than zero, the timeout occurs when &lt;timeout&gt;.&lt;mtimeout&gt; seconds have passed. If the timeout is less than or equal to zero, the timeout never occurs.
33 </p>
34
35 <p>
36 These commands return one of the following values in the system variable "result":
37 </p>
38
39 <table>
40 <tr>
41 <th>Value</th>
42 <th>Meaning</th>
43 </tr>
44 <tr>
45 <td>0</td>
46 <td>Timeout. No data has received.</td>
47 </tr>
48 <tr>
49 <td>1</td>
50 <td>Otherwise(TBD)</td>
51 </tr>
52 </table>
53
54 <h2>Example</h2>
55
56 <pre class="macro-example">
57 ; The timeout limit is 30 sec.
58 timeout = 30
59
60 ; Clear the received buffer.
61 flushrecv
62
63 ; Wait for more than 255 bytes.
64 waitn 255
65 </pre>
66
67 </body>
68 </html>

SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.