Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

def_prog_mode def_shell_mode

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The def_prog_mode and def_shell_mode routines are used to save terminal modes.

Syntax

   #include <curses.h>



   int def_prog_mode();

   int def_shell_mode();

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

The def_prog_mode() and def_shell_mode() routines save the current terminal modes as "program" (within CURSES) or "shell" (outside CURSES). These are used by the reset_prog_mode() and reset_shell_mode() routines. The modes are saved automatically by the initscr(), newterm(), and setupterm() routines.

These routines can also be used outside CURSES with terminfo routines.

Implementation Considerations

Identical to XPG/3

See Also

initscr(), newterm(), setupterm(), reset_prog_mode(), reset_shell_mode()

Portability

UNIX System V, XPG/3

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.