2 .\" Copyright (c) 1990, 1995 by Mortice Kern Systems Inc. All Rights Reserved Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" 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]
6 .TH BORDER 3XCURSES "Jun 5, 2002"
8 border, box, wborder \- add a single-byte border to a window
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-I\fR /usr/xpg4/include \fB -L \fR /usr/xpg4/lib \e
13 \fB -R \fR /usr/xpg4/lib \fB -lcurses \fR [ \fIlibrary\fR... ]
15 \fBc89\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lcurses\fR [ \fIlibrary\fR... ]
19 \fBint\fR \fBborder\fR(\fBchtype\fR \fIls\fR, \fBchtype\fR \fIrs\fR, \fBchtype\fR \fIts\fR, \fBchtype\fR \fIbs\fR, \fBchtype\fR \fItl\fR,
20 \fBchtype\fR \fItr\fR, \fBchtype\fR \fIbl\fR, \fBchtype\fR \fIbr\fR);
25 \fBint\fR \fBwborder\fR(\fBWINDOW *\fR\fIwin\fR, \fBchtype\fR \fIls\fR, \fBchtype\fR \fIrs\fR, \fBchtype\fR \fIts\fR, \fBchtype\fR \fIbs\fR,
26 \fBchtype\fR \fItl\fR,\fBchtype\fR \fItr\fR, \fBchtype\fR \fIbl\fR, \fBchtype\fR \fIbr\fR);
31 \fBint\fR \fBbox\fR(\fBWINDOW *\fR\fIwin\fR, \fBchtype\fR \fIverch\fR, \fBchtype\fR \fIhorch\fR);
37 The \fBborder()\fR and \fBwborder()\fR functions draw a border around the
38 specified window. All parameters must be single-byte characters whose
39 rendition can be expressed using only constants beginning with \fBACS_\fR. A
40 parameter with the value of 0 is replaced by the default value.
48 Constant Values for Borders
50 Parameter Default Constant Default Character
52 \fIverch \fR \fBACS_VLINE\fR |
53 \fIhorch \fR \fBACS_HLINE\fR -
54 \fBls\fR \fBACS_VLINE\fR |
55 \fIrs\fR \fBACS_VLINE\fR |
56 \fIts\fR \fBACS_HLINE\fR -
57 \fIbs\fR \fBACS_HLINE\fR -
58 \fIbl\fR \fBACS_BLCORNER\fR +
59 \fIbr\fR \fBACS_BRCORNER\fR +
60 \fItl\fR \fBACS_ULCORNER\fR +
61 \fBtr\fR \fBACS_URCORNER\fR +
71 \fIverch\fR, \fIhorch\fR)
81 \fBwborder(\fR\fIwin\fR,
82 \fIverch\fR, \fIverch\fR,
83 \fIhorch\fR, \fIhorch\fR, 0, 0, 0,
90 When the window is boxed, the bottom and top rows and right and left columns
91 overwrite existing text.
99 Is the character and rendition used for the left side of the border.
108 Is the character and rendition used for the right side of the border.
117 Is the character and rendition used for the top of the border.
126 Is the character and rendition used for the bottom of the border.
135 Is the character and rendition used for the top-left corner of the border.
144 Is the character and rendition used for the top-right corner of the border.
153 Is the character and rendition used for the bottom-left corner of the border.
162 Is the character and rendition used for the bottom-right corner of the border.
171 Is the pointer to the window in which the border or box is to be drawn.
180 Is the character and rendition used for the left and right columns of the box.
189 Is the character and rendition used for the top and bottom rows of the box.
195 On success, these functions return \fBOK\fR. Otherwise, they return \fBERR\fR.
203 See \fBattributes\fR(5) for descriptions of the following attributes:
211 ATTRIBUTE TYPE ATTRIBUTE VALUE
213 Interface Stability Standard
221 \fBadd_wch\fR(3XCURSES), \fBaddch\fR(3XCURSES), \fBattr_get\fR(3XCURSES),
222 \fBattroff\fR(3XCURSES), \fBborder_set\fR(3XCURSES), \fBlibcurses\fR(3XCURSES),
223 \fBattributes\fR(5), \fBstandards\fR(5)