LinuxCommandLibrary

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's the reverse of captoinfo.
The tool enables compatibility with older applications requiring termcap. Some capabilities may not translate directly.

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 features lack termcap equivalents. Part of ncurses. Output may need manual adjustment.

HISTORY

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

SEE ALSO

captoinfo(1), tic(1), infocmp(1), terminfo(5)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community