def_shell_mode Subroutine

Purpose

Saves the current terminal modes as shell mode ("out of curses").

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>
def_shell_mode( )

Description

The def_shell_mode subroutine saves the current terminal driver line discipline modes in the current terminal structure for later use by reset_shell_mode(). The def_shell_mode subroutine is called automatically by the setupterm subroutine.

This routine would normally not be called except by a library routine.

Example

To save the "out of curses" state, enter:

def_shell_mode();

This routine saves the "out of curses" state.