These functions manipulate the background attributes on
stdscr or on the specified window.
The function
wbkgdset(
win,
ch) sets the background attributes of the specified window
win to
ch.
When the background attributes are set on a window, characters are added to the window with the logical
OR of the background attributes and the character's attributes. If both the background attribute and the character attribute contain color, the color of the character attribute is rendered. If the background attribute contains a non-space character, then this character is added where the foreground character is a space character.
Note that subwindows created from
win inherit the background attributes of
win.
The function
wbkgd(
win,
ch) sets the background attributes of the specified window
win to
ch and also sets the rendition of every character position on that window, as if the characters had been newly added to
win. The rendition of characters on subwindows of
win is also set to
ch.
The functions
bkgdset(
ch) and
bkgd(
ch) are equivalent to
wbkgdset(
stdscr,
ch) and
wbkgd(
stdscr,
ch), respectively.
The function
getbkgd(
win) returns the background attributes for the window
win.