tset.1 (2010 09)

t
tset(1) tset(1)
the examples small.
Assume, for the moment, that you are on an HP 2622. This is suitable for typing by hand but not for a
.profile unless you are always on a 2622.
export TERM; TERM=‘tset - 2622‘
Assume you have an HP 2623 at home that you dial up on, but your office 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 office 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
placement 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
following can be used:
export TERM; TERM=‘tset - -m ’>1200:2624’ 2622‘
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 3: September 2010 3 Hewlett-Packard Company 3