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
tset(1) tset(1)
On terminals that can backspace but not overstrike (such as a CRT), and when the erase character is the
default erase character (# on standard systems), the erase character is changed to Back space (ˆH).
Options
tset recognizes the following options:
-ec Set the erase character to be the named character c; c defaults to ˆH (BACKSPACE). The
character c can either be typed directly, or entered using circumflex notation used here (e.g.,
the circumflex notation for control-H is ˆH;insh(1) the ˆ character should be escaped ()).
-kc Set the kill character to c. The default c is ˆX.Ifc is not specified, the kill character
remains unchanged unless the original value of the kill character is null, In which case the
kill character is set to @.
- Report terminal type. Whatever type is decided on is reported. If no other flags are given,
the only effect is to write the terminal type on the standard output. Has no effect if used with
-s.
-s Generate appropriate commands (depending on current SHELL environment variable) to set
TERM.
-I Suppress transmitting terminal initialization strings.
-Q Suppress printing the Erase set to and Kill set to messages.
-A Ask the user for the TERM type.
-S Output the strings that would be assigned to TERM in the environment rather than generat-
ing commands for a shell. In sh(1), the following is an alternate way of setting TERM:
set -- ‘tset -S ...‘
TERM=$1
-h
Force a read of /etc/ttytype . When -h is not specified, the terminal type is determined
by reading the environment unless some mapping is specified.
For compatibility with earlier versions of
tset, the following flags are accepted, but their use is
discouraged:
-r Report to the user in addition to other flags.
-Ec Set the erase character to c only if the terminal can backspace. c defaults to
ˆH.
In addition to capabilities described in
terminfo (see termio(7) and terminfo(4)), the following boolean
terminfo capabilities are understood by tset and reset, and can be included in the terminfo database
for the purpose of terminal setup:
UC ‘‘Uppercase’’ mode sets character mapping for terminals that support only uppercase charac-
ters. Equivalent to
stty lcase.
LC ‘‘Lowercase’’ mode permits input and output of lowercase characters. Equivalent to stty
-lcase
.
EP Set ‘‘even parity’’. Equivalent to stty parenb -parodd
OP
Set ‘‘odd parity’. Equivalent to stty parenb parodd
.
NL Set ‘‘new line’’ mode. Equivalent to stty onlret.
HD Set ‘‘half-duplex’’ mode. Equivalent to
stty -echo.
pt Set ‘‘print tabs’ mode. Equivalent to stty tabs.
EXAMPLES
These examples all assume the sh(1). Note that a typical use of
tset in a .profile also uses the -e
and -k options, and often the -m or -Q options as well. These options have been omitted here to keep
the examples small.
Assume, for the moment, that you are on an HP2622. This is suitable for typing by hand but not for a
.profile unless you are always on a 2622.
export TERM; TERM=‘tset - 2622‘
HP-UX Release 11i: December 2000 2 Section 1947
___
___