|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T q
Length: 3334 (0xd06) Types: TextFile Names: »qterm.1«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─⟦this⟧ »EUUGD11/euug-87hel/sec1/qterm/qterm.1«
.\" .\" $Header: qterm.1,v 1.1 86/12/22 10:45:25 mcooper Exp $ .\" .TH QTERM 1 8/8/86 .ds ]W USC Computing Services .SH NAME qterm \- Query Terminal .SH SYNOPSIS qterm [ .B \-a ] [ .B \-f ] [ .B \-s ] [ .B \-q ] .SH DESCRIPTION .I Qterm is used to query a terminal to determine its name. This is done by sending the fairly universal string ``<ESCAPE>Z'' to the terminal, reading in a response, and comparing it against a master table of possible responses. The ``name'' printed to standard output should be one found in the .I termcap(5) database. .PP For .I csh(1) users, putting a line in your .I .login file such as: .sp 1 .in +.5i setenv TERM `qterm` .in -.5i .sp 1 should automagically set your terminal type. For .I sh(1) users, putting these lines in your .I .profile file should set your terminal type: .sp 1 .in +.5i TERM=`qterm` .br export TERM .in -.5i .sp 1 .SH OPTIONS .IP \-a Use the alternate string ``<ESCAPE>[c'' when asking the terminal to identify itself. This string is recognized by most ANSI compatible terminals. .IP \-f If the file .B $HOME/.qterm is present, it's contents are scanned to produce information for querying terminals. In this way, a user may setup different values for certain terminals. After the contents of this file have been scanned, .I qterm proceeds to query the terminal with the information provided in the file .B $HOME/.qterm. If an un-intelligable response is received (or non at all), .I qterm will proceed to use its own internal information to determine the terminal type. .IP \-s Display the response received from the terminal in a ``nice'' fashion. .IP \-q Be ``quiet'' and only print the terminal name to standard output. .SH ".QTERM FILE" .PP The format of the file $HOME/.qterm consists of four fields each seperated by white space (tabs and/or spaces). The first field is the string that should be used to query the terminal. The second field is the string to expect in response to the query. The third field is the terminal name (compatible with .I termcap(5)) to print to standard output. The fourth field is optional and may contain a description of the exact manufacturer and model name of the terminal to be used in a message printed to standard error. .PP Blank lines or lines starting with the character ``#'' are ignored and may be used as comment lines. A character preceeded by a ``^'' is taken to mean the .I control character. (i.e. ``^['' is interpretted as an <ESCAPE>). .PP Below is a sample file: .sp 2 .nf # # QTerm File # ^[Z\0\0\0\0\0^[[?1;1c\0\0\0\0\0vt100\0\0\0\0\0A vt100 with STP ^[Z\0\0\0\0\0^[[?1;2c\0\0\0\0\0vt100\0\0\0\0\0ANSI/VT100 Clone ^[Z\0\0\0\0\0^[[?1;3c\0\0\0\0\0vt100\0\0\0\0\0A vt100 with AVO and STP ^[Z\0\0\0\0\0^[[?1;4c\0\0\0\0\0vt100\0\0\0\0\0A vt100 with GPO ^[Z\0\0\0\0\0^[iBO\0\0\0\0\0\0\0\0z29\0\0\0\0\0\0\0Zenith in Zenith Mode .fi .sp .SH AUTHOR Michael A. Cooper, .br USC Computing Services, Los Angeles. .SH FILES /etc/termcap \- termcap(5) database .SH SEE ALSO csh(1), sh(1), termcap(5) .SH DIAGNOSTICS .IP "\fITerminal not recognized - defaults to dumb.\fP" .I QTerm did not receive a response from the terminal, or the response did not match any that .I qterm has stored internally. Use the \-s option to check to see which is the case. .SH BUGS Many terminals do not send a response at all.