HP-UX System Administrator's Guide: Routine Management Tasks

directory contains an entry wy100, you have probably found the correct file. To
be sure, examine the contents of the file with more. You will see a screen full of
special characters, but near the beginning you will see wy100|100|wyse 100.
This verifies the correct file and shows that you can refer to the Wyse 100 by any
of the names wy100, 100, or wyse 100.
If there is a terminfo file for the terminal you want to add, skip the next step and
go to Step 4.
If there is no terminfo file for the terminal you want to add, you will need to
create one. See the next step for details.
3. To create a terminfo file, follow the directions in terminfo(4).
To adapt an existing file, follow these steps:
a. Log in as superuser.
b. Make an ASCII copy of an existing terminfo file. For example, make a copy
of the file /usr/share/lib/terminfo/w/wy100 by entering:
untic /usr/share/lib/terminfo/w/wy100> new_file
c. Edit the new file to reflect the capabilities of the new terminal. Make sure you
change the name(s) of the terminal in the first line.
d. Compile the new terminfo file:
tic new_file
For more further information, see tic(1M) and untic(1M)
4. Set the users TERM variable in the appropriate login script (either .profile for
Korn and POSIX shell users or .login for C shell users in their home directory)
to any of the names you uncovered in Step 2. For example:
export TERM=wy100 (Korn or POSIX shell)
setenv TERM wy100 (C shell)
The default versions of these scripts prompt the user for the terminal type upon
log in, so rather than editing the script, you could simply tell the user to respond
with the terminal name. For example:
TERM = (hp) wy100
You can also set the TERM variable with the /sbin/ttytype command.
Troubleshooting Problems with Terminals
There are a number of terminal related problems that can occur. Many of these result
in a terminal that appears not to communicate with the computer. Other problems
cause “garbage” to appear on the screen (either instead of the data you expected or
intermixed with your data).
This section primarily addresses problems with alpha-numeric display terminals;
however, many of the steps discussed here can also be applied to problems with terminal
156 Managing Systems