[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 2

resetty, savetty Subroutine

Purpose

Saves/restores the terminal mode.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>

int resetty(void);

int savetty(void):

Description

The resetty subroutine restores the program mode as of the most recent call to the savetty subroutine.

The savetty subroutine saves the state that would be put in place by a call to the reset_prog_mode subroutine.

Return Values

Upon successful completion, these subroutines return OK. Otherwise. they return ERR.

Examples

To restore the terminal to the state it was in at the last call to savetty, enter:

resetty();

Related Information

The def_prog_mode (def_prog_mode, def_shell_mode, reset_prog_mode or reset_shell_mode Subroutine) subroutine, endwin (endwin Subroutine) subroutine, savetty (savetty Subroutine) subroutine.

Curses Overview for Programming in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.

List of Curses Subroutines in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.

Understanding Terminals with Curses in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]