def_prog_mode(3) — Subroutines
NAME
def_prog_mode, def_shell_mode − Saves terminal modes
SYNOPSIS
#include <curses.h>
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.