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

set_curterm

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The set_curterm routine is used to set the cur_term variable (interface to terminfo).

Syntax

   #include <curses.h>



   int set_curterm (TERMINAL *nterm);

Parameters

nterm

The terminal type for which the variable is set.

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

The set_curterm() routine is a low-level routine used only outside of CURSES when the program has to deal directly with the terminfo database to handle certain terminal capabilities. The use of appropriate CURSES routines is recommended in all other situations.

The set_curterm() routine sets the cur_term variable to nterm. The values from nterm as well as other state information for the terminal are used by terminfo functions such as mvcur(), tigetflag(), tigetstr(), and tigetnum().

Implementation Considerations

UNIX System V implementation

See Also

del_curterm()

Portability

HP-UX, UNIX System V

Feedback to webmaster