QTERM

Section: User Commands (1)
Updated: 5/6/86
Index Return to Main Contents
 

NAME

qterm - Query Terminal  

SYNOPSIS

qterm [ -a ] [ -s ] [ -q ]  

DESCRIPTION

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 termcap(5) database.

Putting a line in your .login file such as:

setenv TERM `qterm`

should automagically set your terminal type.  

OPTIONS

-a
Use the alternate string ``<ESCAPE>[c'' when asking the terminal to identify itself. This string is recognized by most ANSI compatible terminals.
-s
Display the response received from the terminal in a ``nice'' fashion.
-q
Be ``quiet'' and only print the terminal name to standard output.
 

AUTHOR

Michael A. Cooper,
USC Computing Services, Los Angeles.  

FILES

/etc/termcap   - termcap(5) database
 

SEE ALSO

termcap(5)  

DIAGNOSTICS

The message, ``Terminal not recognized - defaults to dumb.'', means that qterm did not receive a response from the terminal, or the response did not match any that qterm has stored internally. Use the -s option to check to see which is the case.  

BUGS

Many terminals do not send a response at all.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
AUTHOR
FILES
SEE ALSO
DIAGNOSTICS
BUGS

This document was created by man2html, using the manual pages.
Time: 21:51:53 GMT, February 02, 2023