HP-UX Reference (11i v2 03/08) - 1 User Commands N-Z (vol 2)

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 Backspace.
Options
tset recognizes the following options:
-ec Set the erase character to be the named character c; c defaults to what the terminfo database
(see terminfo (4)) entry reports to be the character sent by the Backspace key (usually
ˆH).
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).
-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 charac-
ter 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 generating
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 what the terminfo
database (see terminfo (4)) entry reports to be the character sent by the Backspace key (usually
^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.
EXTERNAL INFLUENCES
Environment Variables
SHELL if csh, generate csh commands; otherwise generate sh(1) commands.
TERM the (canonical) terminal name.
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
HP-UX 11i Version 2: August 2003 2 Hewlett-Packard Company Section 1901