scr_dump.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1995, by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
*
* XCurses Library
*
* Copyright 1990, 1995 by Mortice Kern Systems Inc. All rights reserved.
*
*/
#if M_RCSID
#ifndef lint
static char rcsID[] = "$Header: /rd/src/libc/xcurses/rcs/scr_dump.c 1.1 1995/06/21 16:19:43 ant Exp $";
#endif
#endif
#include <private.h>
/*
* Save the current screen image.
*/
int
scr_dump(f)
const char *f;
{
int code;
#ifdef M_CURSES_TRACE
__m_trace("scr_dump(%p=\"%s\")", f);
#endif
}
}
static int
scr_replace(w, f)
WINDOW *w;
const char *f;
{
int i;
return ERR;
return ERR;
return ERR;
}
/* Replace contents of curscr window structure. */
*w = *new;
/* Rehash the current screen? */
if (w == curscr)
for (i = 0; i < w->_maxy; ++i)
/* Discard the working window. */
return OK;
}
/*
* A picture of what scr_restore(), scr_init(), and scr_set() do :
*
* scr_restore() scr_init()
* | |
* stdscr V V
* +----+ newscr curscr
* | | +-------+ +-------+
* +----+ refresh() -> | | | |
* | | doupdate() -> | |
* w | | | |
* +----+ wrefresh(w) -> | | | |
* | | +-------+ +-------+
* +----+ ^ ^
* | |
* \---- scr_set() ----/
*/
/*
* Get a screen image that will appear next doupdate(),
* replacing the current screen.
*/
int
scr_restore(f)
const char *f;
{
int code;
#ifdef M_CURSES_TRACE
__m_trace("scr_restore(%p=\"%s\")", f);
#endif
}
/*
* Get the screen image that really reflects what is on the screen,
* though the applicatiion may not want it. A subsequent doupdate()
* will compared and make changes against this image.
*/
int
scr_init(f)
const char *f;
{
int code;
#ifdef M_CURSES_TRACE
__m_trace("scr_init(%p=\"%s\")", f);
#endif
if ((non_rev_rmcup && exit_ca_mode != (char *) 0)
else
}
/*
* Get the screen image that is really on the screen and that the
* application wants on the screen.
*/
int
scr_set(f)
const char *f;
{
int code;
#ifdef M_CURSES_TRACE
__m_trace("scr_set(%p=\"%s\")", f);
#endif
code = scr_restore(f);
}