Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log 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: 1527 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>recvln</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>recvln</h1>
15
16 <p>
17 Receives characters of a line.
18 </p>
19
20 <pre class="macro-syntax">
21 recvln
22 </pre>
23
24 <h2>Remarks</h2>
25
26 <p>
27 Retrieves a line of received characters from the host and stores it in the system variable "inputstr".<br>
28 This command waits until a line is received or the communication between Tera Term and the host is terminated or 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 If the line is received successfully, the system variable "result" is set to 1. Otherwise, "result" is set to zero.
37 </p>
38
39 <h2>Example</h2>
40
41 <pre class="macro-example">
42 ; open the log file
43 fileopen file 'log.txt' 0
44 ; enter synchronous mode
45 setsync 1
46 result=1
47
48 while result=1
49 ; receive one line
50 recvln
51 ; write it to the log file
52 filewriteln file inputstr
53 endwhile
54
55 ; enter asynchronous mode
56 setsync 0
57 </pre>
58
59 <p>
60 See also "<a href="setsync.html">setsync</a>" for the synchronous mode.
61 </p>
62
63 </body>
64 </html>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26