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

resetty savetty

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The resetty and savetty routines are used to restore and save terminal modes.

Syntax

   #include <curses.h>



   int resetty();

   int savetty();

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

The savetty() and resetty() routines are low-level routines typically used within library routines. The savetty() and resetty() routines save and restore the terminal state, respectively. The savetty() routine saves the current state in a buffer; the resetty() routine restores the state to that stored in the buffer at the time of the last savetty() call.

Implementation Considerations

Identical to XPG/3

Portability

HP-UX, UNIX System V, XPG/3

Feedback to webmaster