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