Function ncursesw::wadd_wchstr[][src]

pub fn wadd_wchstr(
    handle: WINDOW,
    wchstr: &ComplexString
) -> Result<(), NCurseswError>
Expand description

Add/Output a complex character string on a given window.

Example

extern crate ncursesw;

use ncursesw::*;
use ncursesw::normal::*;

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

let win = newwin(win_size, win_origin)?;

let color_pair0 = ColorPair::default();
let attrs = Attributes::default();

let complex_str = ComplexString::from_str("Testing..Testing..1..2..3..", &attrs, &color_pair0)?;

// this will output "Testing..Testing..1..2..3.." on the window `win`.
wadd_wchstr(win, &complex_str)?;

delwin(win)?;