← 返回命令列表

Linux command

captoinfo 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Convert a termcap file

captoinfo [path/to/termcap_file]

Convert and compile

captoinfo [path/to/termcap_file] | tic

Convert with verbose output

captoinfo -v [path/to/termcap_file]

Output fields one per line

captoinfo -1 [path/to/termcap_file]

Convert with extended capabilities

captoinfo -x [path/to/termcap_file]

Display version

captoinfo -V

说明

captoinfo converts termcap terminal capability descriptions into the terminfo format. For each termcap entry found in the input file, an equivalent terminfo description is written to standard output. It also translates some obsolete, nonstandard capabilities into standard (SVr4/XSI Curses) terminfo capabilities. If no files are specified, captoinfo reads from the file named in the TERMCAP environment variable and extracts only the entry for the terminal named in TERM. If TERMCAP is not set, it reads from /etc/termcap by default. The utility is implemented as a link to tic(1) with the -I option implied. Other tic options like -1, -f, -v, -w, and -x can be used.

参数

-v_n_
Print verbose comments and debugging information to standard error. Higher values increase verbosity.
-V
Display the version number of the ncurses library and exit.
-1
Output fields one per line instead of wrapping multiple fields to a maximum width of 60 characters.
-w _width_
Set the maximum output width for wrapped fields.
-x
Enable parsing and emission of extended terminfo capabilities for modern terminal features.

FAQ

What is the captoinfo command used for?

captoinfo converts termcap terminal capability descriptions into the terminfo format. For each termcap entry found in the input file, an equivalent terminfo description is written to standard output. It also translates some obsolete, nonstandard capabilities into standard (SVr4/XSI Curses) terminfo capabilities. If no files are specified, captoinfo reads from the file named in the TERMCAP environment variable and extracts only the entry for the terminal named in TERM. If TERMCAP is not set, it reads from /etc/termcap by default. The utility is implemented as a link to tic(1) with the -I option implied. Other tic options like -1, -f, -v, -w, and -x can be used.

How do I run a basic captoinfo example?

Run `captoinfo [path/to/termcap_file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v_n_ do in captoinfo?

Print verbose comments and debugging information to standard error. Higher values increase verbosity.