Function ncursesw::addnstr[][src]

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

Add/Output a character string of a given length to the standard screen.

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 s = "Testing..Testing..1..2..3..";

// this will output "Testing..Testing.."
addnstr(&s, 18)?;