Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

initscr(3)

reset_prog_mode(3)

reset_shell_mode(3)

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. 

RELATED INFORMATION

initscr(3), reset_prog_mode(3), reset_shell_mode(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026