HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)

t
tset(1) tset(1)
Assume you have an HP 2623
at home which you dial up on, but your ofce terminal is hardwired and
known in
/etc/ttytype .
export TERM; TERM=‘tset - -m dialup:2623‘
Suppose you are accessing the system through a switching network that can connect any system to any
incoming modem line in an arbitrary combination, making it nearly impossible to key on what port you are
coming in on. Your ofce terminal is an
HP 2622, and your home terminal is an
HP 2623 running at 1200
baud on dial-up switch ports. Sometimes you use someone else’s terminal at work, so you want it to verify
what terminal type you have at high speeds, but at 1200 baud you are always on a 2623. Note the place-
ment of the question mark and the quotes to protect the
> and ? from interpretation by the shell.
export TERM; TERM=‘tset - -m ’switch>1200:?2622’ -m ’switch<=1200:2623’‘
All of the above entries fall back on the terminal type specified in
/etc/ttytype if none of the condi-
tions hold. The following entry is appropriate if you always dial up, always at the same baud rate, on many
different kinds of terminals. Your most common terminal is an
HP 2622. It always asks you what kind of
terminal you are on, defaulting to 2622.
export TERM; TERM=‘tset - ?2622‘
If the file /etc/ttytype is not properly installed and you want to key entirely on the baud rate, the fol-
lowing can be used:
export TERM; TERM=‘tset - -m ’>1200:2624’ 2622‘
VARIABLES
SHELL if csh, generate csh commands; otherwise generate sh(1) commands.
TERM the (canonical) terminal name.
AUTHOR
tset was developed by the University of California, Berkeley.
FILES
/etc/ttytype port-name to terminal-type mapping data base;
/usr/share/lib/terminfo/?/*
terminal information data base.
SEE ALSO
csh(1), sh(1), stty(1), ttytype(4), environ(5).
HP-UX 11i Version 1: September 2005 3 Hewlett-Packard Company Section 1995