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 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. You can manipulate a terminal's display regardless of the terminal type. To create the terminfo database, use tic. For information about the terminfo database, see Customizing the terminfo database in z/OS UNIX System Services Planning.

For more information about curses, see Using the module map to improve performance in z/OS Common Debug Architecture User's Guide.

Options

1
Single-column output.
V
Print the program version.
v
Print debugging information (verbose) to standard error.
w
Specifies the width of the output.
filename
Specifies the termcap entries to be processed.

Examples

  1. 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:
    captoinfo  /etc/termcap.src
  2. To print all the terminal entries in the file /etc/termcap.src in terminfo format with each entry on a separate line, issue:
    captoinfo  -1 /etc/termcap.src
  3. 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 standard error.
    captoinfo  /etc/termcap.src  1> /test/terminfo.ti

Related information

infocmp, tic