VERSION(3R)

NAME
version - return terminal version number

SYNOPSIS
long version ( )

DESCRIPTION
The version function returns a hex number which identifies the version of the 630 MTG terminal.

The version number is the equivalent to the ASCII string given as the response to the <ESC>[c escape sequence. The ASCII string has three fields (f1;f2;f3) defined as follows:
f1 | identifies the 630 MTG as a windowing
 | terminal
f2 | identifies the terminal as a 630 MTG
f3 | identifies the firmware release

The long integer returned by version is a hex number rather than an ASCII string for easier parsing by the application program. The hex number has the same three fields in the format 0xf1f2f3, where each field is one byte.

EXAMPLE
For example the hex number:

0x080806

returned by version is equivalent to the ASCII string:

8;8;6

given in response to the escape sequence <ESC>[c. This version number corresponds to Release 1.1 of the 630 MTG.

SEE ALSO
dmdversion(1).
630 MTG Terminal User's Guide.