Both termcap(3) and terminfo(3) calls return data from the terminfo
database. As every program pass this to tgoto(3) for termcap, or tputs(3)
for terminfo the diagram goes like this
terminfo programs:
terminfo database ----> program
termcap programs:
terminfo database ----> program
And how does the TERMCAP environment variable fit into the scheme
I'm all for progress but to me it still seems the time has not come
yet to ditch this feature which is portable and widely used by
programs that implement non-standard terminals like screen or
rxvt-unicode.