Function ncursesw::waddnstr[][src]

pub fn waddnstr(
    handle: WINDOW,
    str: &str,
    number: i32
) -> Result<(), NCurseswError>
Expand description

Add/Output a character string of a given length to a given window.

Note: Originally this function whould just output characters in the ascii character set but as of ABI 6 (and maybe eariler) this function will output any unicode UTF-8 character string.

Example

extern crate ncursesw;

use ncursesw::*;

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

let win = newwin(win_size, win_origin)?;

let s = "Testing..Testing..1..2..3..";

// this will output "Testing..Testing.." at line 5, column 10 on the window `win`.
waddnstr(win, &s, 18)?;

delwin(win)?;