HP-UX SNAplus2 R7 Installation Guide

The terminfo Database
Altering the terminfo Database
Chapter 4 43
Creating a Non-HP Terminal Entry
You may need to create entries for some non-HP terminals that are used
with the SNAplus2 products. For example, the sequence of codes
generated when f1 is pressed on a VT100 terminal may differ slightly,
depending on which company manufactured the terminal. If you are
using VT100s from different manufacturers, you may need to create a
new VT100 terminfo entry for each manufacturer.
For one manufacturer's VT100, you might create a terminfo entry
named vt100-A, which contains the capabilities available on that
manufacturer's terminal. For the second manufacturer's VT100, you
might create a terminfo entry named vt100-B, and that entry would
contain the capabilities available on the second manufacturer's terminal.
To create a terminfo entry, do the following:
Step 1. First, use the untic command to create a file that can be modified with
an editor.
Step 2. Using the information in Table 4-2, “Required Terminal Functions,” and
Table 4-3, “Recommended Terminal Functions,”, determine which
capabilities must be defined in the entry. (For a non-HP terminal, you
probably will also have to use information from the manufacturer's
documentation for the terminal.)
Step 3. Using the editor of your choice, edit the file you created with untic to
ensure that it contains the correct information.
Step 4. When the information is complete, use the tic program to compile the
new terminfo entry from the edited file (see the HP-UX Reference for
more information about terminfo, tic, and untic).
To complete the above example of the entries vt100-A and vt100-B, you
would specify the following for first manufacturer's VT100 terminal
when logging in,
set TERM=vt100-A
and specify the following for the second manufacturer's VT100 terminal
when logging in:
set TERM=vt100-B