Deleted Added
full compact
curs_border_set.3x (97049) curs_border_set.3x (166124)
1.\"***************************************************************************
1.\"***************************************************************************
2.\" Copyright (c) 2002 Free Software Foundation, Inc. *
2.\" Copyright (c) 2002-2004,2005 Free Software Foundation, Inc. *
3.\" *
4.\" Permission is hereby granted, free of charge, to any person obtaining a *
5.\" copy of this software and associated documentation files (the *
6.\" "Software"), to deal in the Software without restriction, including *
7.\" without limitation the rights to use, copy, modify, merge, publish, *
8.\" distribute, distribute with modifications, sublicense, and/or sell *
9.\" copies of the Software, and to permit persons to whom the Software is *
10.\" furnished to do so, subject to the following conditions: *
11.\" *
12.\" The above copyright notice and this permission notice shall be included *
13.\" in all copies or substantial portions of the Software. *
14.\" *
15.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
16.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
17.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
18.\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
19.\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
20.\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
21.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
22.\" *
23.\" Except as contained in this notice, the name(s) of the above copyright *
24.\" holders shall not be used in advertising or otherwise to promote the *
25.\" sale, use or other dealings in this Software without prior written *
26.\" authorization. *
27.\"***************************************************************************
28.\"
3.\" *
4.\" Permission is hereby granted, free of charge, to any person obtaining a *
5.\" copy of this software and associated documentation files (the *
6.\" "Software"), to deal in the Software without restriction, including *
7.\" without limitation the rights to use, copy, modify, merge, publish, *
8.\" distribute, distribute with modifications, sublicense, and/or sell *
9.\" copies of the Software, and to permit persons to whom the Software is *
10.\" furnished to do so, subject to the following conditions: *
11.\" *
12.\" The above copyright notice and this permission notice shall be included *
13.\" in all copies or substantial portions of the Software. *
14.\" *
15.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
16.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
17.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
18.\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
19.\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
20.\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
21.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
22.\" *
23.\" Except as contained in this notice, the name(s) of the above copyright *
24.\" holders shall not be used in advertising or otherwise to promote the *
25.\" sale, use or other dealings in this Software without prior written *
26.\" authorization. *
27.\"***************************************************************************
28.\"
29.\" $Id: curs_border_set.3x,v 1.3 2002/04/20 16:49:13 tom Exp $
29.\" $Id: curs_border_set.3x,v 1.6 2005/05/15 16:17:37 tom Exp $
30.TH curs_border_set 3X ""
30.TH curs_border_set 3X ""
31.na
32.hy 0
31.SH NAME
33.SH NAME
32.PP
33\fBborder_set\fR,
34\fBwborder_set\fR,
35\fBbox_set\fR,
36\fBhline_set\fR,
37\fBwhline_set\fR,
38\fBmvhline_set\fR,
39\fBmvwhline_set\fR,
40\fBvline_set\fR,
41\fBwvline_set\fR,
42\fBmvvline_set\fR,
43\fBmvwvline_set\fR \- create \fBcurses\fR borders or lines using complex characters and renditions
34\fBborder_set\fR,
35\fBwborder_set\fR,
36\fBbox_set\fR,
37\fBhline_set\fR,
38\fBwhline_set\fR,
39\fBmvhline_set\fR,
40\fBmvwhline_set\fR,
41\fBvline_set\fR,
42\fBwvline_set\fR,
43\fBmvvline_set\fR,
44\fBmvwvline_set\fR \- create \fBcurses\fR borders or lines using complex characters and renditions
45.ad
46.hy
44.SH SYNOPSIS
45.PP
46\fB#include <curses.h>\fR
47.sp
48\fBint border_set(\fR
49 \fBconst cchar_t *\fR\fIls\fR, \fBconst cchar_t *\fR\fIrs\fR,
50 \fBconst cchar_t *\fR\fIts\fR, \fBconst cchar_t *\fR\fIbs\fR,
51 \fBconst cchar_t *\fR\fItl\fR, \fBconst cchar_t *\fR\fItr\fR,
52 \fBconst cchar_t *\fR\fIbl\fR, \fBconst cchar_t *\fR\fIbr\fR
53\fB);\fR
54.br
55\fBint wborder_set(\fR
56 \fBWINDOW *win\fR,
57 \fBconst cchar_t *\fR\fIls\fR, \fBconst cchar_t *\fR\fIrs\fR,
58 \fBconst cchar_t *\fR\fIts\fR, \fBconst cchar_t *\fR\fIbs\fR,
59 \fBconst cchar_t *\fR\fItl\fR, \fBconst cchar_t *\fR\fItr\fR,
60 \fBconst cchar_t *\fR\fIbl\fR, \fBconst cchar_t *\fR\fIbr\fR\fB);\fR
61.br
62\fBint box_set(\fR
63 \fBWINDOW *win\fR,
64 \fBconst cchar_t *\fR\fIverch\fR,
65 \fBconst cchar_t *\fR\fIhorch\fR\fB);\fR
66.br
67\fBint hline_set(\fR
68 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
69.br
70\fBint whline_set(\fR
71 \fBWINDOW *\fR\fIwin\fR,
72 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
73.br
74\fBint mvhline_set(\fR
75 \fBint \fR\fIy\fR, \fBint \fR\fIx\fR,
76 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
77.br
78\fBint mvwhline_set(\fR
79 \fBWINDOW *\fR\fIwin\fR,
80 \fBint \fR\fIy\fR, \fBint \fR\fIx\fR,
81 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
82.br
83\fBint vline_set(\fR
84 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
85.br
86\fBint wvline_set(\fR
87 \fBWINDOW *\fR\fIwin\fR,
88 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
89.br
90\fBint mvvline_set(\fR
91 \fBint \fR\fIy\fR, \fBint \fR\fIx\fR,
92 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
93.br
94\fBint mvwvline_set(\fR
95 \fBWINDOW *\fR\fIwin\fR,
96 \fBint \fR\fIy\fR, \fBint \fR\fIx\fR,
97 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
98.br
99.SH DESCRIPTION
100.PP
101The
102\fBborder_set\fR
103and
104\fBwborder_set\fR
105functions draw a border around the edges of the current or specified window.
106These functions do not change the cursor position, and do not wrap.
107.PP
108Other than the window, each argument is a complex character with attributes:
109.RS
110\fIls\fR - left side,
111.br
112\fIrs\fR - right side,
113.br
114\fIts\fR - top side,
115.br
116\fIbs\fR - bottom side,
117.br
118\fItl\fR - top left-hand corner,
119.br
120\fItr\fR - top right-hand corner,
121.br
122\fIbl\fR - bottom left-hand corner, and
123.br
124\fIbr\fR - bottom right-hand corner.
125.RE
126.PP
127If any of these arguments is zero, then the corresponding
128default values (defined in \fBcurses.h\fR) are used instead:
129.RS
130\fBWACS_VLINE\fR,
131.br
132\fBWACS_VLINE\fR,
133.br
134\fBWACS_HLINE\fR,
135.br
136\fBWACS_HLINE\fR,
137.br
138\fBWACS_ULCORNER\fR,
139.br
140\fBWACS_URCORNER\fR,
141.br
142\fBWACS_LLCORNER\fR, and
143.br
144\fBWACS_LRCORNER\fR.
145.RE
146.PP
147\fBbox_set(\fR\fIwin\fR, \fIverch\fR\fB, \fR\fIhorch\fR\fB);\fR
148is a shorthand for the following call:
149.PP
150\fBwborder_set(\fR\fIwin\fR\fB, \fR\fIverch\fR\fB, \fR\fIverch\fR\fB,\fR
151 \fIhorch\fR\fB, \fR\fIhorch\fR\fB, NULL, NULL, NULL, NULL);\fR
152.PP
153The
154\fB*line_set\fR
155functions use
156\fIwch\fR
157to draw a line starting at the current cursor position in the window.
158The line is at most \fIn\fR characters long or as many as fit into the window.
159The current cursor position is not changed.
160.PP
161The
162\fBhline_set\fR,
163\fBmvhline_set\fR,
164\fBmvwhline_set\fR, and
165\fBwhline_set\fR
166functions draw a line proceeding toward the last column of the same line.
167.PP
168The
169\fBvline_set\fR,
170\fBmvvline_set\fR,
171\fBmvwvline_set\fR, and
172\fBwvline_set\fR
173functions draw a line proceeding toward the last line of the window.
174.br
175.SH NOTES
176.PP
177Note that
178\fBborder_set\fR,
179\fBhline_set\fR,
180\fBmvhline_set\fR,
181\fBmvvline_set\fR,
182\fBmvwhline_set\fR,
183\fBmvwvline_set\fR, and
184\fBvline_set\fR
185may be macros.
186.br
187.SH RETURN VALUES
188.PP
189Upon successful completion, these functions return
190\fBOK\fR.
191Otherwise, they return
192\fBERR\fR.
47.SH SYNOPSIS
48.PP
49\fB#include <curses.h>\fR
50.sp
51\fBint border_set(\fR
52 \fBconst cchar_t *\fR\fIls\fR, \fBconst cchar_t *\fR\fIrs\fR,
53 \fBconst cchar_t *\fR\fIts\fR, \fBconst cchar_t *\fR\fIbs\fR,
54 \fBconst cchar_t *\fR\fItl\fR, \fBconst cchar_t *\fR\fItr\fR,
55 \fBconst cchar_t *\fR\fIbl\fR, \fBconst cchar_t *\fR\fIbr\fR
56\fB);\fR
57.br
58\fBint wborder_set(\fR
59 \fBWINDOW *win\fR,
60 \fBconst cchar_t *\fR\fIls\fR, \fBconst cchar_t *\fR\fIrs\fR,
61 \fBconst cchar_t *\fR\fIts\fR, \fBconst cchar_t *\fR\fIbs\fR,
62 \fBconst cchar_t *\fR\fItl\fR, \fBconst cchar_t *\fR\fItr\fR,
63 \fBconst cchar_t *\fR\fIbl\fR, \fBconst cchar_t *\fR\fIbr\fR\fB);\fR
64.br
65\fBint box_set(\fR
66 \fBWINDOW *win\fR,
67 \fBconst cchar_t *\fR\fIverch\fR,
68 \fBconst cchar_t *\fR\fIhorch\fR\fB);\fR
69.br
70\fBint hline_set(\fR
71 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
72.br
73\fBint whline_set(\fR
74 \fBWINDOW *\fR\fIwin\fR,
75 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
76.br
77\fBint mvhline_set(\fR
78 \fBint \fR\fIy\fR, \fBint \fR\fIx\fR,
79 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
80.br
81\fBint mvwhline_set(\fR
82 \fBWINDOW *\fR\fIwin\fR,
83 \fBint \fR\fIy\fR, \fBint \fR\fIx\fR,
84 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
85.br
86\fBint vline_set(\fR
87 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
88.br
89\fBint wvline_set(\fR
90 \fBWINDOW *\fR\fIwin\fR,
91 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
92.br
93\fBint mvvline_set(\fR
94 \fBint \fR\fIy\fR, \fBint \fR\fIx\fR,
95 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
96.br
97\fBint mvwvline_set(\fR
98 \fBWINDOW *\fR\fIwin\fR,
99 \fBint \fR\fIy\fR, \fBint \fR\fIx\fR,
100 \fBconst cchar_t *\fR\fIwch\fR, \fBint \fR\fIn\fR\fB);\fR
101.br
102.SH DESCRIPTION
103.PP
104The
105\fBborder_set\fR
106and
107\fBwborder_set\fR
108functions draw a border around the edges of the current or specified window.
109These functions do not change the cursor position, and do not wrap.
110.PP
111Other than the window, each argument is a complex character with attributes:
112.RS
113\fIls\fR - left side,
114.br
115\fIrs\fR - right side,
116.br
117\fIts\fR - top side,
118.br
119\fIbs\fR - bottom side,
120.br
121\fItl\fR - top left-hand corner,
122.br
123\fItr\fR - top right-hand corner,
124.br
125\fIbl\fR - bottom left-hand corner, and
126.br
127\fIbr\fR - bottom right-hand corner.
128.RE
129.PP
130If any of these arguments is zero, then the corresponding
131default values (defined in \fBcurses.h\fR) are used instead:
132.RS
133\fBWACS_VLINE\fR,
134.br
135\fBWACS_VLINE\fR,
136.br
137\fBWACS_HLINE\fR,
138.br
139\fBWACS_HLINE\fR,
140.br
141\fBWACS_ULCORNER\fR,
142.br
143\fBWACS_URCORNER\fR,
144.br
145\fBWACS_LLCORNER\fR, and
146.br
147\fBWACS_LRCORNER\fR.
148.RE
149.PP
150\fBbox_set(\fR\fIwin\fR, \fIverch\fR\fB, \fR\fIhorch\fR\fB);\fR
151is a shorthand for the following call:
152.PP
153\fBwborder_set(\fR\fIwin\fR\fB, \fR\fIverch\fR\fB, \fR\fIverch\fR\fB,\fR
154 \fIhorch\fR\fB, \fR\fIhorch\fR\fB, NULL, NULL, NULL, NULL);\fR
155.PP
156The
157\fB*line_set\fR
158functions use
159\fIwch\fR
160to draw a line starting at the current cursor position in the window.
161The line is at most \fIn\fR characters long or as many as fit into the window.
162The current cursor position is not changed.
163.PP
164The
165\fBhline_set\fR,
166\fBmvhline_set\fR,
167\fBmvwhline_set\fR, and
168\fBwhline_set\fR
169functions draw a line proceeding toward the last column of the same line.
170.PP
171The
172\fBvline_set\fR,
173\fBmvvline_set\fR,
174\fBmvwvline_set\fR, and
175\fBwvline_set\fR
176functions draw a line proceeding toward the last line of the window.
177.br
178.SH NOTES
179.PP
180Note that
181\fBborder_set\fR,
182\fBhline_set\fR,
183\fBmvhline_set\fR,
184\fBmvvline_set\fR,
185\fBmvwhline_set\fR,
186\fBmvwvline_set\fR, and
187\fBvline_set\fR
188may be macros.
189.br
190.SH RETURN VALUES
191.PP
192Upon successful completion, these functions return
193\fBOK\fR.
194Otherwise, they return
195\fBERR\fR.
196.PP
197Functions using a window parameter return an error if it is null.
193.SH SEE ALSO
194\fBncurses\fR(3X),
195\fBcurs_border\fR(3X),
196\fBcurs_outopts\fR(3X)
197.\"#
198.\"# The following sets edit modes for GNU EMACS
199.\"# Local Variables:
200.\"# mode:nroff
201.\"# fill-column:79
202.\"# End:
198.SH SEE ALSO
199\fBncurses\fR(3X),
200\fBcurs_border\fR(3X),
201\fBcurs_outopts\fR(3X)
202.\"#
203.\"# The following sets edit modes for GNU EMACS
204.\"# Local Variables:
205.\"# mode:nroff
206.\"# fill-column:79
207.\"# End: