> The termcap method is provided by libtermcap-compat. Most applications > which use this method only do so as an option for systems where terminfo > is not available -- for example, for Vim, terminfo vs termcap is a > compile-time option. The termcap database is limited, generally out of > date and mostly unmaintained. It will likely not remain in the tree for > much longer (bug #103105).
Take a look at ncurses. ncurses even comes with a termcap.h in /usr/include. I think ncurses is source-compatible with termcap and offers the features needed to acces different terminal types.
signature.asc
Description: OpenPGP digital signature