def_prog_mode(3cur)
Name
def_prog_mode, def_shell_mode − save terminal modes
Syntax
int def_prog_mode()
int def_shell_mode()
Description
The def_prog_mode routine saves the current terminal modes as the program if the terminal is running under curses. The stored terminal modes are used by the reset_prog_mode() routine. This function is used when the user makes a temporary exit from curses.
The routine def_shell_mode saves the current terminal modes as the shell if the terminal is not running under curses. The stored terminal modes are used by the reset_shell_mode() routine.
Both routines are called automatically by initscr(.).
Return Values
The def_prog_mode and def_shell_mode functions return OK on success and ERR on error.
See Also
initscr(3cur), reset_prog_mode(3cur), reset_shell_mode(3cur)