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.

INSTALL

sudo apt install ncurses-bin
copy
sudo dnf install ncurses
copy
sudo pacman -S ncurses
copy
sudo apk add ncurses
copy
brew install ncurses
copy
nix profile install nixpkgs#ncurses
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid