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-1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* LINTLIBRARY */
/*
*
* XCurses Library
*
* Copyright 1990, 1995 by Mortice Kern Systems Inc. All rights reserved.
*
*/
#if M_RCSID
#ifndef lint
static char rcsID[] =
"$Header: /team/ps/sun_xcurses/archive/local_changes/xcurses/src/lib/"
"libxcurses/src/libc/xcurses/rcs/scr_dump.c 1.6 1998/06/01 16:25:23 "
"cbates Exp $";
#endif
#endif
#include <private.h>
/*
* Save the current screen image.
*/
int
scr_dump(const char *f)
{
int code;
}
return (code);
}
static int
scr_replace(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. */
/* Make sure we know where the cursor is */
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(const char *f)
{
int code;
return (code);
}
/*
* 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(const char *f)
{
int code;
char *name;
else {
else {
}
}
return (code);
}
/*
* Get the screen image that is really on the screen and that the
* application wants on the screen.
*/
int
scr_set(const char *f)
{
int code;
code = scr_restore(f);
return (code);
}