HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

tgetent

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The tgetent routine is used to look up the termcap name (interface to termcap library).

Syntax

   #include <curses.h>



   int tgetent (char *bp, char *name);

Parameters

bp

A pointer to a buffer 1024 bytes long.

name

The termcap entry to look up.

Return Values

-1

Cannot open termcap file.

0

No entry in termcap.

1

Successful completion.

Description

The tgetent() routine looks up the termcap entry for the terminal name.

The tgetent() routine is included for compatibility with programs that use the termcap library. New programs should use terminfo functions.

NOTE: The parameter bp should designate an area 1024 bytes long that is retained for all calls to tgetnum(), tgetflag(), tgetstr(), and tgoto().

Implementation Considerations

UNIX System V implementation

See Also

setupterm()

Portability

HP-UX, UNIX System V

Feedback to webmaster