Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Configuring a System
Adding Peripherals
Chapter 3 257
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.
Step 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)
Step 4. 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.