Function ncursesw::mvadd_wchnstr[][src]

pub fn mvadd_wchnstr(
    origin: Origin,
    wchstr: &ComplexString,
    number: i32
) -> Result<(), NCurseswError>
Expand description

Add a complex string of a specified length to the specified position on the standard screen

Example

let colors1 = Colors::new(Color::Red, Color::Black);
let color_pair1 = ColorPair::new(colors1)?;
let attributes = Attribute::Dim | color_pair1;

let origin = Origin { y: 10, x: 15 };
let wchstr = ComplexString::from_str("testing, testing... 1..2..3..", color_pair1, attributes)?;

mvadd_wchnstr(origin, &wchstr, 29)?;