getver
Get the version of Tera Term.
getver <strvar> [<version>]
Remarks
Returns the version of Tera Term in the string variable <strvar>. The stored value is the version of the Tera Term source this port is based on (5.8), not the version of Tera Term Mac itself.
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.
| Value | Meaning |
|---|---|
| -2 | Error. <version> is invalid. |
| -1 | Tera Term version is older than <version>. |
| 0 | Tera Term version is equal to <version>. |
| 1 | Tera Term version is newer than <version>. |
Example
getver version messagebox version 'getver' ; 5.8 getver version '5.0' if result >= 0 then messagebox 'version 5.0 or later' 'getver' endif