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