/*
* 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"
/*
* getwin.c
*
* 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/getwin.c 1.2 1995/06/12 17:48:38 ant Exp $";
#endif
#endif
#include <private.h>
#include <limits.h>
static int
WINDOW *w;
char *mbs;
{
short co;
int i, n, y, x;
return 0;
return 0;
return 0;
return 0;
(void) wstandend(w);
return n;
}
WINDOW *
{
char *mbs;
WINDOW *w;
short flags;
#ifdef M_CURSES_TRACE
#endif
/* Get window dimensions and location to create a new window. */
goto error1;
goto error1;
goto error2;
/* Read other window attributes. */
fp, "SCROLL=%hd,%hd VMIN=%hd VTIME=%hd FLAGS=%hx FG=%hx,%hd ",
);
if (by < 7)
goto error3;
w->_flags &= ~W_CONFIG_MASK;
if (by < 3)
goto error3;
;
goto error3;
return __m_return_pointer("getwin", w);
(void) delwin(w);
}
static int
WINDOW *w;
int y, x;
char *mbs;
int len;
{
int i;
short co;
/* Write first character as a multibyte string. */
/* Write additional characters with same colour and attributes. */
for (i = x;;) {
i = __m_cc_next(w, y, i);
if (w->_maxx <= i)
break;
break;
}
/* Terminate string. */
(void) __m_cc_mbs((const cchar_t *) 0, (char *) 0, 0);
/* Return index of next unprocessed column. */
return i;
}
int
WINDOW *w;
{
char *mbs;
int y, x, mbs_len;
#ifdef M_CURSES_TRACE
#endif
(void) fprintf(
fp, "MAX=%d,%d\nBEG=%d,%d\nSCROLL=%d,%d\n",
);
(void) fprintf(
fp, "VMIN=%d\nVTIME=%d\nFLAGS=%#x\nFG=%#x,%d\n",
);
(void) __m_cc_mbs((const cchar_t *) 0, (char *) 0, 0);
for (y = 0; y < w->_maxy; ++y) {
for (x = 0; x < w->_maxx; )
}
}