HP-UX Reference (11i v1 00/12) - 1 User Commands N-Z (vol 2)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/neqn.1
________________________________________________________________
___ ___
t
ttytype(1) ttytype(1)
# To have ttytype(1) prompt for the terminal type before trying
# to automatically identify the terminal, add the "-p" option
# to the "ttytype -s" command below.
#
if [ -z "$TERM" -o "$TERM" = network ]; then
unset TERM
eval ‘tset -s -Q‘
if [ -z "$TERM" -o "$TERM" = unknown ]; then
eval ‘ttytype -s‘
tset -Q -e ${ERASE:-\ˆh} $TERM
fi
fi
NOTES
Use of the -s option is highly recommended because many terminals support variable-size displays. This
option provides the only means for automatically configuring the user environment in such a manner that
applications can handle these terminals correctly. Note that LINES and COLUMNS are not set if the -p
option is used and the user manually enters a terminal type.
The following steps are performed in the order indicated when identifying a terminal:
1. ttytype tries the Wyse 30/50/60 id request sequence.
2. ttytype tries the standardANSI id request sequence. If a response is received, it is converted to
a string according to an internal table.
3. ttytype tries the HP id request sequence.
4. If none of the above steps succeed, ttytype prompts interactively for the correct terminal type
unless the -a option has been given.
ttytype may skip one or more of the first three steps, depending on the presence of -t
options.
The
HP ID-request sequence can switch some ANSI terminals into an unexpected operating mode. Recovery
from such a condition sometimes requires cycling power on the terminal. To avoid this problem, ttytype
always sends the HP identification sequence last.
WARNINGS
The terminal identification sequences sent by ttytype can cause unexpected behavior on terminals other
than the Wyse 30/50/60, standard ANSI or HP terminals. If you have such terminals in your configuration,
use the -t or -p options to prevent ttytype from sending sequences that cause unexpected behavior.
AUTHOR
ttytype was developed by HP.
SEE ALSO
csh(1), ksh(1), sh(1), stty(1), ttytype(4), environ(5).
Section 1−−956 − 2 − HP-UX Release 11i: December 2000
___
___