← 返回命令列表

Linux command

infotocap 命令

文件

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

常用示例

Convert terminfo to termcap

infotocap [terminfo_file]

Convert specific entry

infotocap -1 [term_name]

Output to file

infotocap [input] > [output.cap]

Verbose mode

infotocap -v [terminfo]

说明

infotocap converts terminal descriptions from terminfo format to termcap format. It is implemented as a link to tic(1) with the -C option implied. It is the reverse of captoinfo. The tool enables compatibility with older applications requiring termcap format. Since it invokes tic internally, other tic options such as -1, -f, -v, -w, and -x can also be used.

参数

-1
One entry per line.
-v
Verbose output.
-V
Display version.
-w _N_
Set output width.

FAQ

What is the infotocap command used for?

infotocap converts terminal descriptions from terminfo format to termcap format. It is implemented as a link to tic(1) with the -C option implied. It is the reverse of captoinfo. The tool enables compatibility with older applications requiring termcap format. Since it invokes tic internally, other tic options such as -1, -f, -v, -w, and -x can also be used.

How do I run a basic infotocap example?

Run `infotocap [terminfo_file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -1 do in infotocap?

One entry per line.