To set up a user with a non-HP terminal, do the
following:
Make
sure the file set NONHPTERM is on the system
by using either of these methods:
# swlist -l fileset NonHP-Terminfo
If the file set exists, the entry for NonHP-Terminfo.NONHPTERM will be displayed.
# ll /var/adm/sw/products/NonHP-Terminfo
If the file set exists, the directory /var/adm/sw/products/NonHP-Terminfo/NONHPTERM will exist.
If the fileset is not on the system, you will
need to load it from your latest HP-UX media. For details, see the HP-UX System Administrator’s Guide: Routine Tasks or the Software Distributor Administration Guide.
Look in the directory /usr/share/lib/terminfo for a file that corresponds to the terminal you want to set up.
For example, suppose you want to set up a user with a Wyse 100 terminal.
All supported terminals whose names begin with w are contained in the /usr/share/lib/terminfo/w directory. Because this 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 Step 3 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 Step 3 for details.
To create a terminfo file, follow the directions
in terminfo(4).
To adapt
an existing file, follow these steps:
Log
in as superuser.
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:
Set the user’s 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.