Linux Commands Examples

A great documentation place for Linux commands

infotocap

convert a terminfo description into a termcap description


see also : tic - infocmp

Synopsis

infotocap [-vn width] [-V] [-1] [-w width] file . . .


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
prog_infotocap=`echo infotocap|sed "${transform}"`
prog_tic=`echo tic|sed "${transform}"`
prog_toe=`echo toe|sed "${transform}"`
-e "s,@INFOTOCAP@,$prog_infotocap," \
-e "s,@TIC@,$prog_tic," \
-e "s,@TOE@,$prog_toe," \
-e "s,@TPUT@,$prog_tput," \

description

infotocap looks in each given text file for terminfo descriptions. For each terminfo description found, an equivalent termcap description is written to standard output. Terminfo use capabilities are translated directly to termcap tc capabilities.

-v

print out tracing information on standard error as the program runs.

-V

print out the version of the program in use on standard error and exit.

-1

cause the fields to print out one to a line. Otherwise, the fields will be printed several to a line to a maximum width of 60 characters.

-w

change the output to width characters.

files

/etc/terminfo

Compiled terminal description database.

notes

This utility is actually a link to tic, running in -C mode. You can use other tic options such as -f and -x.


see also

ncurses(3NCURSES), tic , infocmp , terminfo

This describes ncurses version 5.9 (patch 20110404).


author

Eric S. Raymond <esr[:at:]snark.thyrsus[:dot:]com> and
Thomas E. Dickey <dickey@invisible-island.net>

How can this site be more helpful to YOU ?


give  feedback