Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

libtermcap - not supported; use libcurses (CrUn369)

LIB Impacts

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

Programming Libraries-ltermcap Programming Librarieslibtermcap.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
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.