Annotation of researchv10dc/630/man/src/u_man/man1/dmdversion.1, revision 1.1.1.1

1.1       root        1: .TH DMDVERSION 1 "630 MTG"
                      2: .SH NAME
                      3: dmdversion \- inquire terminal/host software version
                      4: .SH SYNOPSIS
                      5: .B dmdversion 
                      6: [
                      7: .B \-ehlst
                      8: ]
                      9: .SH DESCRIPTION
                     10: The 
                     11: .I dmdversion
                     12: utility displays the version numbers of the 630 MTG terminal and host software.
                     13: The terminal version number is the equivalent to the ASCII
                     14: string which contains three fields (f1;f2;f3) defined as
                     15: follows:
                     16: .TP 1i
                     17: .B f1
                     18: identifies the 630 MTG as a windowing terminal
                     19: .TP
                     20: .B f2
                     21: identifies the terminal as a 630 MTG
                     22: .TP
                     23: .B f3
                     24: identifies the firmware release
                     25: .LP
                     26: .PP
                     27: Host software version is read from the file $DMD/VERSION.
                     28: .PP
                     29: The \f3\-t\f1 option is used to display the terminal version number.
                     30: The \f3\-h\f1 option is used to display the host software version
                     31: number. The default action is to display both terminal and
                     32: host software version numbers.
                     33: .PP
                     34: In the \fBlayers\fR environment, terminal version is found through an 
                     35: \fIioctl(2)\fR call to the
                     36: xt device driver. In non-layers, or if the \fB-e\fR flag is specified, the
                     37: terminal version is found through the Request Terminal Type escape sequence \fBESC[c\fR.
                     38: .PP
                     39: The \fB-l\fR option can be used to inquire if Local Area
                     40: Network (LAN) Encoding is set for the terminal
                     41: through terminal setup. This is found through the Request Encoding escape
                     42: sequence \fBESC[F\fR. This option excludes the \fB-e\fR option and does not
                     43: inquire the terminal version number.
                     44: .PP
                     45: When the \f3\-s\f1 flag is present, no output is printed but
                     46: an exit value is returned as follows. If the \f3\-t\f1 or
                     47: \f3\-e\f1 options are present, the decimal ascii value of the
                     48: last digit of the terminal's version is returned. If the
                     49: \f3\-l\f1 option is present, 1 is returned if LAN encoding is
                     50: enabled; 0 otherwise. The \f3\-l\f1 option will overide the
                     51: \f3\-t\f1 or \f3\-e\f1 options. In all other cases, 255 (-1) is
                     52: returned.
                     53: .SS EXAMPLE
                     54: The following example can be used to determine if a 630 MTG or
                     55: some other windowing terminal (such as a 5620) is being used.
                     56: .RS 6
                     57: .nf
                     58: .ft CM
                     59: case `dmdversion -t` in
                     60:    *'8;8'*)
                     61:         echo I am a 630
                     62:         ;;
                     63:    *'8;7'*)
                     64:         echo I am a 5620
                     65:         ;;
                     66:    *)
                     67:         echo Unknown terminal type
                     68:         ;;
                     69: esac
                     70: .fi
                     71: .ft R 
                     72: .RE
                     73: .SH FILES
                     74: .TP 22
                     75: $DMD/VERSION
                     76: the host version
                     77: .SH SEE ALSO
                     78: version(3R).
                     79: .br
                     80: ioctl(2) in the \f2UNIX System V Programmer's Reference Manual\f1.
                     81: .br
                     82: layers(1) in the UNIX System V Release 3 User's Reference
                     83: Manual.
                     84: .br
                     85: layers(1) in the 5620 Dot-Mapped Display Reference
                     86: Manual.
                     87: .br
                     88: \f2630 MTG Terminal User's Guide\f1.
                     89: 
                     90: .SH DIAGNOSTICS
                     91: The 
                     92: .B -e
                     93: and
                     94: .B -l
                     95: flags only work if the window connected to the standard output is
                     96: running the default 630 MTG terminal emulator or any other emulator that
                     97: supports the described escape sequences.
                     98: 
                     99: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.