Function ncursesw::wadd_wchnstr [−][src]
pub fn wadd_wchnstr(
handle: WINDOW,
wchstr: &ComplexString,
number: i32
) -> Result<(), NCurseswError>
Expand description
Add/Output a complex character string of a given length 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.." on the window `win`.
wadd_wchnstr(win, &complex_str, 18)?;
delwin(win)?;