def_prog_mode(3cur)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 routine saves the current terminal modes as the program if the ter‐
minal is running under The stored terminal modes are used by the rou‐
tine. This function is used when the user makes a temporary exit from
The routine saves the current terminal modes as the shell if the termi‐
nal is not running under The stored terminal modes are used by the rou‐
tine.
Both routines are called automatically by
Return Values
The and functions return OK on success and ERR on error.
See Alsoinitscr(3cur), reset_prog_mode(3cur), reset_shell_mode(3cur)def_prog_mode(3cur)