The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group


resetty, savetty - save/restore terminal mode


#include <curses.h>

int resetty(void);

int savetty(void);


The resetty() function restores the program mode as of the most recent call to savetty().

The savetty() function saves the state that would be put in place by a call to reset_prog_mode().


Upon successful completion, these functions return OK. Otherwise, they return ERR.


No errors are defined.


def_prog_mode(), <curses.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]