LNEXT
ONELCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q - to quit, <CR> - to continue
TERMINF1
/
|
usr
----|
/ |
bin lib
|
|
terminfo
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ / . . / . . / . | . \ ... \ . \ ... \
a b e h k n q v z
TERMINF2
1. Give the known names of the terminal.
2. List and define the known capabilities.
3. Compile the newly created description entry.
4. Test the entry for correct operation.
TERMINF3
myterm|mytm|mine|fancy|terminal|My FANCY Terminal,
am, bel=^G, cols#80, lines#30, db, cr=^M,
cuul=^K, cudl=^J, cul1=^H, cuf1=^L, smso=\ED,
rmso=\EZ, el=\EK$<3>,
The compiler for compiling terminfo entries is tic,
and has the following syntax:
tic [-v] file1 file2 ...
GO
The terminfo database describes terminals by listing
a set of capabilities and describing how the terminal
performs certain operations. Each terminal description contains
the names by which the terminal is known and a group of
comma-separated fields describing the actions and capabilities
of the terminal.
All terminfo files are in the directories whose
names are the first letter of the terminal names.
For example the files for the terminals:
vt52, vt220, videotrack, volkterm, etc., would be in the
directory /usr/lib/terminfo/v.
For details see above.
Now you can tell where the programs that address the screen,
including the CTI tutorials and vi, look to find the proper
control sequences for your terminal.
Therefore, terminfo files provide terminal independence
for UNIX applications!
The procedure for building terminal description is
as shown above.
The terminal description entries are very similar to those
used on the earlier versions of UNIX in the /etc/termcap
file. You must remember, however, that the terminfo
entries are compiled. A sample terminal definition file is
shown above.
These terminal definitions are used by the curses routines
which provide high-level access to terminal control capabilities.
It is important for one to understand the features of terminfo
and how to build terminal definition files; however you should not use
low level calls to access the terminal capabilities, but rather
you should use the curses library for any terminal programming.
For information on how to build terminfo entries, see the
detailed description of terminfo in your manual!