4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>bkgdset</B>, <B>wbkgdset</B>, <B>bkgd</B>, <B>wbkgd</B>, <B>getbkgd</B> - <B>curses</B> window
9 background manipulation routines
13 <H2>SYNOPSIS</H2><PRE>
14 <B>#include</B> <B><curses.h></B>
16 <B>void</B> <B>bkgdset(const</B> <B>chtype</B> <B>ch);</B>
17 <B>void</B> <B>wbkgdset(WINDOW</B> <B>*win,</B> <B>const</B> <B>chtype</B> <B>ch);</B>
18 <B>int</B> <B>bkgd(const</B> <B>chtype</B> <B>ch);</B>
19 <B>int</B> <B>wbkgd(WINDOW</B> <B>*win,</B> <B>const</B> <B>chtype</B> <B>ch);</B>
20 <B>chtype</B> <B>getbkgd(WINDOW</B> <B>*win);</B>
24 <H2>DESCRIPTION</H2><PRE>
25 The <B>bkgdset</B> and <B>wbkgdset</B> routines manipulate the back-
26 ground of the named window. The window background is a
27 <B>chtype</B> consisting of any combination of attributes (i.e.,
28 rendition) and a character. The attribute part of the
29 background is combined (OR'ed) with all non-blank charac-
30 ters that are written into the window with <B>waddch</B>. Both
31 the character and attribute parts of the background are
32 combined with the blank characters. The background
33 becomes a property of the character and moves with the
34 character through any scrolling and insert/delete
35 line/character operations.
37 To the extent possible on a particular terminal, the
38 attribute part of the background is displayed as the
39 graphic rendition of the character put on the screen.
41 The <B>bkgd</B> and <B>wbkgd</B> functions set the background property
42 of the current or specified window and then apply this
43 setting to every character position in that window:
45 The rendition of every character on the screen is
46 changed to the new background rendition.
48 Wherever the former background character appears,
49 it is changed to the new background character.
51 The <B>getbkgd</B> function returns the given window's current
52 background character/attribute pair.
56 <H2>RETURN VALUE</H2><PRE>
57 The routines <B>bkgd</B> and <B>wbkgd</B> return the integer <B>OK</B>. The
58 SVr4.0 manual says "or a non-negative integer if <B>immedok</B>
59 is set", but this appears to be an error.
64 Note that <B>bkgdset</B> and <B>bkgd</B> may be macros.
68 <H2>PORTABILITY</H2><PRE>
69 These functions are described in the XSI Curses standard,
70 Issue 4. The draft does not include <B>const</B> qualifiers on
71 the arguments. The standard specifies that <B>bkgd</B> and <B>wbkgd</B>
72 return <B>ERR</B>, on failure. but gives no failure conditions.
76 <H2>SEE ALSO</H2><PRE>
77 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="curs_addch.3x.html">curs_addch(3x)</A></B>, <B><A HREF="curs_outopts.3x.html">curs_outopts(3x)</A></B>
130 Man(1) output converted with
131 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>