P-UX SNAplus2 Installation Guide (June 2003)
The terminfo Database
Altering the terminfo Database
Chapter 4 49
Altering the terminfo Database
The SNAplus2 products will run on many terminal types, and the
/opt/sna/terminfo database tells SNAplus2 how to communicate with
them. This is done by using the information in the terminfo entry for
each terminal type.
NOTE Most terminfo entries provided for HP terminals should need very little
altering. However, the entries provided for non-HP terminals may
require altering. If you need to alter terminfo, do it after all the products
are installed. See the HP-UX Reference for more information about
altering terminfo.
Input and Output Handling
To handle all input and output correctly, the SNAplus2 products use the
terminfo entry named hpSNAplus. This entry is the only one provided
with the SNAplus2 products; all other terminfo entries are provided as
part of HP-UX operating system. The hpSNAplus entry is for all HP
terminals that have softkey labels and support the line-drawing
character set.
If you need to alter the terminfo entry for an HP terminal or a non-HP
terminal that supports line-drawing characters, a lookup table,
/etc/opt/sna/snaptermfile, provides a mechanism to change the
default $TERM value to another value that supports the line-drawing
characters. When SNAplus2 is started on an ASCII terminal interface,
SNAplus2 searches for an entry in /etc/opt/sna/snaptermfile based
on the current $TERM value. If an entry is found that matches, the
line-drawing characters are used on the interface. If an entry is not
found that matches, the “_” (underbar) is used to represent horizontal
lines and the “|” (vertical bar) is used to represent vertical lines on the
screen.
If you find that your $TERM value does not support the line-drawing
character set, edit the snaptermfile file and redirect the $TERM value
to hpSNAplus. (For example, hpterm=hpSNAplus:). Use an editor to
change the /etc/opt/sna/snaptermfile default values. These are
shown on the following pages.