Function ncursesw::mvwadd_wchnstr[][src]

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

Add/Output a complex character string of a given length on a given window at a given origin.

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 origin = Origin { y: 5, x: 10 };

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.." at line 5, column 10 on the window `win`.
mvwadd_wchnstr(win, origin, &complex_str, 18)?;

delwin(win)?;