DMDVERSION(1)

NAME
dmdversion - inquire terminal/host software version

SYNOPSIS
dmdversion [ -ehlst ]

DESCRIPTION
The dmdversion utility displays the version numbers of the 630 MTG terminal and host software. The terminal version number is the equivalent to the ASCII string which contains 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

Host software version is read from the file $DMD/VERSION.

The -t option is used to display the terminal version number. The -h option is used to display the host software version number. The default action is to display both terminal and host software version numbers.

In the layers environment, terminal version is found through an ioctl(2) call to the xt device driver. In non-layers, or if the -e flag is specified, the terminal version is found through the Request Terminal Type escape sequence ESC[c.

The -l option can be used to inquire if Local Area Network (LAN) Encoding is set for the terminal through terminal setup. This is found through the Request Encoding escape sequence ESC[F. This option excludes the -e option and does not inquire the terminal version number.

When the -s flag is present, no output is printed but an exit value is returned as follows. If the -t or -e options are present, the decimal ascii value of the last digit of the terminal's version is returned. If the -l option is present, 1 is returned if LAN encoding is enabled; 0 otherwise. The -l option will overide the -t or -e options. In all other cases, 255 (-1) is returned.

  EXAMPLE
The following example can be used to determine if a 630 MTG or some other windowing terminal (such as a 5620) is being used.
    case `dmdversion -t` in
       *'8;8'*)
            echo I am a 630
            ;;
       *'8;7'*)
            echo I am a 5620
            ;;
       *)
            echo Unknown terminal type
            ;;
    esac

FILES

$DMD/VERSION
    the host version

SEE ALSO
version(3R).
ioctl(2) in the UNIX System V Programmer's Reference Manual.
layers(1) in the UNIX System V Release 3 User's Reference Manual.
layers(1) in the 5620 Dot-Mapped Display Reference Manual.
630 MTG Terminal User's Guide.

DIAGNOSTICS
The -e and -l flags only work if the window connected to the standard output is running the default 630 MTG terminal emulator or any other emulator that supports the described escape sequences.