fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common Development and Distribution License, Version 1.0 only
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * (the "License"). You may not use this file except in compliance
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 1997 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Copyright (c) 1988 AT&T */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* All Rights Reserved */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * University Copyright- Copyright (c) 1982, 1986, 1988
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The Regents of the University of California
6e0414acac7fe81ff262fb9d3d83c0700fe9b695Reed * All Rights Reserved
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * University Acknowledgment- Portions of this document are derived from
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * software developed by the University of California, Berkeley, and its
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * contributors.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#pragma ident "%Z%%M% %I% %E% SMI"
6e0414acac7fe81ff262fb9d3d83c0700fe9b695Reed/*LINTLIBRARY*/
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Draw a box around a window.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * ls : the character and attributes used for the left side.
6e0414acac7fe81ff262fb9d3d83c0700fe9b695Reed * rs : right side.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * ts : top side.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * bs : bottom side.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortewborder(WINDOW *win, chtype ls, chtype rs, chtype ts,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte chtype bs, chtype tl, chtype tr, chtype bl, chtype br)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int i, endy = win->_maxy - 1, endx = win->_maxx - 2;
6e0414acac7fe81ff262fb9d3d83c0700fe9b695Reed for (i = 0; i < 8; i++) {
for (; x <= xend; ++x)
for (; x <= xend; ++x)
#ifdef _VR3_COMPAT_CODE
if (_y16update) {
while (--endy > 0) {
#ifdef _VR3_COMPAT_CODE
if (_y16update) {