Develop and Download Open Source Software

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log 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: 1728 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>getver</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>getver</h1>
15
16 <p>
17 Get the version of Tera Term. <em>(version 4.58 or later)</em>
18 </p>
19
20 <pre class="macro-syntax">
21 getver &lt;strvar&gt; [&lt;version&gt;]
22 </pre>
23
24 <h2>Remarks</h2>
25
26 <p>
27 Returns the version of Tera Term in the string variable &lt;strvar&gt;.
28 </p>
29
30 <p>
31 If &lt;version&gt; is specified, &lt;version&gt; is compared with the version of running Tera Term and the result is stored in the system variable "result". If &lt;version&gt; is not specified, the system variable "result" is not changed. The meaning of "result" is as follows.
32 </p>
33
34 <table>
35 <thead>
36 <tr>
37 <th>Value</th>
38 <th>Meaning</th>
39 </tr>
40 </thead>
41
42 <tbody>
43 <tr>
44 <td>-2</td>
45 <td>
46 Error. &lt;version&gt; is invalid.
47 </td>
48 </tr>
49
50 <tr>
51 <td>-1</td>
52 <td>
53 Tera Term version is older than &lt;version&gt;.
54 </td>
55 </tr>
56
57 <tr>
58 <td>0</td>
59 <td>
60 Tera Term version is equal to &lt;version&gt;.
61 </td>
62 </tr>
63
64 <tr>
65 <td>1</td>
66 <td>
67 Tera Term version is newer than &lt;version&gt;.
68 </td>
69 </tr>
70
71 </tbody>
72 </table>
73
74 <h2>Example</h2>
75
76 <pre class="macro-example">
77 getver version
78
79 getver version '4.56'
80 if result &gt;= 0 then
81 callmenu 50280
82 callmenu 50210
83 callmenu 50270
84 endif
85 </pre>
86
87 </body>
88 </html>

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