On Tue, Sep 29, 2020 at 12:43:14PM +0200, Petr Pisar wrote:
The built-in path is: /etc/termcap, /usr/share/misc/termcap. But none
of these
directories exist in Fedora. ncurses-base has /usr/share/terminfo. My
knowledge about termcap and terminfo is zero, but it seems that
/usr/share/terminfo files are binary files, while perl-Term-Cap expects
a plain text files. Maybe that's the difference between termcap and terminfo.
termcap is an obsolete format of terminal descriptions, which has some
major limitions. Long time ago, Fedora shipped a termcap translated
from the ncurses terminfo database, but everything should be using
terminfo now.
And thus the hard dependency on ncurses is correct. At the end
Term::Cap
documentation defines the Perl module as "a Perl termcap interface". Not as a
terminfo interface.
Makes sense to me.
--
Miroslav Lichvar