Function ncursesw::wbkgd[][src]

pub fn wbkgd(handle: WINDOW, ch: ChtypeChar) -> Result<(), NCurseswError>
Expand description

Set the background property on the given window and then apply this setting to every character position.

Example

extern crate ncursesw;

use ncursesw::*;
use shims::ncurses::ACS_CKBOARD;

let win_size = Size { lines: 10, columns: 50 };
let win_origin = Origin { y: 5, x: 5 };

let win = newwin(win_size, win_origin)?;

wbkgd(win, ChtypeChar::from_chtype(ACS_CKBOARD()))?;

delwin(win)?;