captoinfo — Print the terminal entries in the terminfo database
Format
captoinfo [–1vV] [–w width] [file …]
Description
captoinfo prints all of the terminal entries in the terminfo database to standard output (stdout) in terminfo format. You can either look at the output or send it to a file that can be processed by tic.
The Curses application uses the terminfo database, which contains a list of terminal descriptions. This enables you to manipulate a terminal's display regardless of the terminal type. To create the terminfo database, use tic. See the section on customizing the terminfo database in z/OS UNIX System Services Planning for information about defining the terminfo database.
For more information about curses, see z/OS C Curses.
Options
- 1
- Single-column output
- V
- Print the program version
- v
- Print debugging information (verbose) to standard error (stderr)
- w
- Specifies the width of the output
- filename
- Specifies the termcap entries to be processed
Examples
- This example shows how to print all the terminal entries in the
file /etc/termcap.src in terminfo format. The entry for a vt52
is shown. Issue:
You get the following display:captoinfo /etc/termcap.src
captoinfo: obsolete 2 character name 'dv' removed. synonyms are: 'vt52|dec vt52' # vt52|dec vt52, xon, cols#80, lines#24, bel=‸¬, clear=-E-310-E-321, cub1=‸½, cud1=‸-, cuf1=-E-303, cup=-E-350%-227-361%'-s'%+%-203%-227-362%'-s'%+%-203, cuu1=-E-301, ed=-E-321, el=-E-322, ind=‸-, kbs=‸½, kcub1=-E-304, kcud1=-E-302, kcuf1=-E-303, kcuu1=-E-301, ri=-E-311, # END OF TERMCAP # ------------------------
- To print all the terminal entries in the file /etc/termcap.src in
terminfo format with each entry on a separate line, issue:
You get the following display:captoinfo –1 /etc/termcap.src
captoinfo: obsolete 2 character name 'dv' removed. synonyms are: 'vt52|dec vt52' # vt52|dec vt52, xon, cols#80, lines#24, clear=-E-310-E-321, cub1=‸½, cud1=‸-, cuf1=-E-303, cup=-E-350%-227-361%'-s'%+%-203%-227-362%'-s'%+%-203, cuu1=-E-301, ed=-E-321, el=-E-322, ind=‸-, kbs=‸½, kcub1=-E-304, kcud1=-E-302, kcuf1=-E-303, kcuu1=-E-301, ri=-E-311, # END OF TERMCAP # ------------------------
- This example shows how to write all the terminal entries in the
file /etc/termcap.src to the file /test/terminfo.ti.
The resulting file can be processed by tic.
Notice that the error messages are written to stderr.
You get the following:captoinfo /etc/termcap.src 1> /test/terminfo.ti
captoinfo: obsolete 2 character name 'dv' removed. synonyms are: 'vt52|dec vt52' #
Related information
infocmp, tic