LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

infotocap

converts terminal descriptions from terminfo format to termcap format

TLDR

Convert terminfo to termcap
$ infotocap [terminfo_file]
copy
Convert specific entry
$ infotocap -1 [term_name]
copy
Output to file
$ infotocap [input] > [output.cap]
copy
Verbose mode
$ infotocap -v [terminfo]
copy

SYNOPSIS

infotocap [options] file...

DESCRIPTION

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.

PARAMETERS

FILE

Terminfo source file to convert.
-1
One entry per line.
-v
Verbose output.
-V
Display version.
-w N
Set output width.

CAVEATS

Some terminfo capabilities have no termcap equivalents and cannot be converted. Part of ncurses. Output may need manual adjustment for complex terminal descriptions.

HISTORY

infotocap is part of ncurses, providing conversion between terminal description formats.

SEE ALSO

captoinfo(1), tic(1), infocmp(1)

Copied to clipboard
Kai