Update ncurses to version 5.4.
[dragonfly.git] / lib / libncurses / man / curs_bkgrnd.3
1 .\"***************************************************************************
2 .\" Copyright (c) 2002 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 .\"
29 .\" $Id: curs_bkgrnd.3x,v 1.1 2002/02/23 23:23:42 tom Exp $
30 .\" $DragonFly: src/lib/libncurses/man/curs_bkgrnd.3,v 1.1 2005/03/12 19:13:54 eirikn Exp $
31 .TH curs_bkgrnd 3X ""
32 .SH NAME
33 .PP
34 \fBbkgrnd\fR,
35 \fBwbkgrnd\fR,
36 \fBbkgrndset\fR,
37 \fBwbkgrndset\fR,
38 \fBgetbkgrnd\fR,
39 \fBwgetbkgrnd\fR \- \fBcurses\fR window complex background manipulation routines
40 .SH SYNOPSIS
41 .PP
42 .B #include <curses.h>
43
44 \fBint bkgrnd(\fR\fB const cchar_t *\fR\fIwch\fR\fB);\fR
45 .br
46 \fBint wbkgrnd(\fR\fB WINDOW *\fR\fIwin\fR\fB, const cchar_t *\fR\fIwch\fR\fB);\fR
47 .br
48 \fBvoid bkgrndset(const cchar_t *\fR\fIwch\fR \fB);\fR
49 .br
50 \fBvoid wbkgrndset(WINDOW *\fR\fIwin\fR\fB, const cchar_t *\fR\fIwch\fR\fB);\fR
51 .br
52 \fBint getbkgrnd(cchar_t *\fR\fIwch\fR\fB);\fR
53 .br
54 \fBint wgetbkgrnd(WINDOW *\fR\fIwin\fR\fB, cchar_t *\fR\fIwch\fR\fB);\fR
55 .br
56 .SH DESCRIPTION
57 The \fBbkgrndset\fR and \fBwbkgrndset\fR routines manipulate the
58 background of the named window.
59 The window background is a \fBcchar_t\fR consisting of
60 any combination of attributes (i.e., rendition) and a complex character.
61 The attribute part of the background is combined (OR'ed) with all non-blank
62 characters that are written into the window with \fBwaddch\fR.  Both
63 the character and attribute parts of the background are combined with
64 the blank characters.
65 The background becomes a property of the
66 character and moves with the character through any scrolling and
67 insert/delete line/character operations.
68
69 To the extent possible on a
70 particular terminal, the attribute part of the background is displayed
71 as the graphic rendition of the character put on the screen.
72
73 The \fBbkgrnd\fR and \fBwbkgrnd\fR functions
74 set the background property of the current or specified window
75 and then apply this setting to every character position in that window:
76
77 .RS
78 The rendition of every character on the screen is changed to
79 the new background rendition.
80
81 Wherever the former background character
82 appears, it is changed to the new background character.
83 .RE
84
85 The \fBgetbkgrnd\fR function returns the given window's current background
86 character/attribute pair via the \fBwch\fR pointer.
87
88 .SH NOTES
89 Note that
90 \fBbkgrnd\fR,
91 \fBbkgrndset\fR, and
92 \fBgetbkgrnd\fR
93 may be macros.
94 .SH RETURN VALUES
95 The \fBbkgrndset\fR and \fBwbkgrndset\fR routines do not return a value.
96 .PP
97 Upon successful completion, the other functions return \fBOK\fR.
98 Otherwise, they return \fBERR\fR.
99 A null window pointer is treated as an error.
100 .SH SEE ALSO
101 \fBcurses\fR(3X),
102 \fBcurs_bkgd\fR(3X)
103 .\"#
104 .\"# The following sets edit modes for GNU EMACS
105 .\"# Local Variables:
106 .\"# mode:nroff
107 .\"# fill-column:79
108 .\"# End: