On Tue, 2006-11-21 at 18:49 +0100, Miroslav Lichvar wrote:
Hi,
I would like to see termcap and libtermcap removed, and to use ncurses
everywhere. termcap is an obsolete system for describing terminal
capabilities, it has annoying size limitations for the description and
libtermcap is an old, unmaintained code.
The ncurses library has a termcap emulation which is internally using
terminfo database. It isn't 100% accurate (see curs_termcap(3)), but
should be ok for most applications. libtermcap's API and ABI are
compatible with ncurses. So what would be required to replace
completely libtermcap with ncurses?
[...]
- Rebuild packages currently using libtermcap against ncurses. It
would be good to choose one of libncurses{,w} and link all binaries
with it; linking with libncursesw will probably require more patching
of configure scripts as some of them are prepared for libncurses
already.
touch libtermcap.c
gcc -shared -fPIC -Wl,-soname=libtermcap.so.2 -lncurses -o libtermcap.so
and then if you ship the created libtermcap.so with ncurses, you don't
have to rebuild or relink anything.
--
Nicholas Miell <nmiell(a)comcast.net>