Browse Subversion Repository
Contents of /trunk/doc/en/html/macro/command/getver.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: 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 <strvar> [<version>] |
| 22 |
</pre> |
| 23 |
|
| 24 |
<h2>Remarks</h2> |
| 25 |
|
| 26 |
<p> |
| 27 |
Returns the version of Tera Term in the string variable <strvar>. |
| 28 |
</p> |
| 29 |
|
| 30 |
<p> |
| 31 |
If <version> is specified, <version> is compared with the version of running Tera Term and the result is stored in the system variable "result". If <version> 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. <version> is invalid. |
| 47 |
</td> |
| 48 |
</tr> |
| 49 |
|
| 50 |
<tr> |
| 51 |
<td>-1</td> |
| 52 |
<td> |
| 53 |
Tera Term version is older than <version>. |
| 54 |
</td> |
| 55 |
</tr> |
| 56 |
|
| 57 |
<tr> |
| 58 |
<td>0</td> |
| 59 |
<td> |
| 60 |
Tera Term version is equal to <version>. |
| 61 |
</td> |
| 62 |
</tr> |
| 63 |
|
| 64 |
<tr> |
| 65 |
<td>1</td> |
| 66 |
<td> |
| 67 |
Tera Term version is newer than <version>. |
| 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 >= 0 then |
| 81 |
callmenu 50280 |
| 82 |
callmenu 50210 |
| 83 |
callmenu 50270 |
| 84 |
endif |
| 85 |
</pre> |
| 86 |
|
| 87 |
</body> |
| 88 |
</html> |
|