Browse Subversion Repository
Contents of /trunk/doc/en/html/macro/command/waitn.html
Parent Directory
| Revision Log
Revision 8939 -
( show annotations)
( download)
( as text)
Thu Oct 1 16:06:58 2020 UTC
(3 years, 7 months ago)
by nmaya
File MIME type: text/html
File size: 1614 byte(s)
マクロコマンドが Tera Term バージョンいくつから存在するか、それぞれのマクロコマンドのヘルプページに記載
ticket #40808
MFT to: 4-stable
| 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. <em>(version 4.62 or later)</em> |
| 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>The characters of specified numbers are stored in the inputstr variable.<br> |
| 50 |
When the numbers are over 511 bytes, the inputstr variable truncates the numbers to 511.</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> |
|