critical impact:
libtermcap - not supported; use libcurses (CrUn369)
Problem description
The libtermcap library exists on Tru64 UNIX but not on HP-UX. However, a replacement exists in the termcap and terminfo functions in the libcurses library on both platforms.
termcap and terminfo are the two traditional UNIX approaches for accessing terminal capabilities. They have different origins, data files, and libraries. For termcap, those are BSD, the termcap text file, and libtermcap library. For terminfo, they are System V, the terminfo database, and libcurses library.
On Tru64 UNIX, libtermcap is available as an archive library. On HP-UX, it is available as a PA archive library, but is not available in native format on Itanium®-based systems. Identifiers
 -ltermcap |
 libtermcap.a |
|
|
See also
Solution description
Use the termcap or terminfo functions in libcurses.
The libcurses library emulates the termcap functions using the terminfo database. However, HP has deprecated the functions and may remove them in a future release of HP-UX. A long-term solution is to migrate to the terminfo functions.
There is a critical difference in the return value of the tgetent function between the libtermcap and libcurses libraries. In libtermcap, the function returns -1 if none of the termcap files could be opened, 0 if the terminal name given does not have an entry, and 1 for success. In libcurses, it returns ERR for failure and OK for success.
The termcap functions in the HP-UX libcurses library do not support the external termcap variables PC, BC, UP, and ospeed. See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| LIB |
Make, Script |
any HP-UX 11i version |
critical |
unavailable |
|