Function ncursesw::waddnwstr [−][src]
pub fn waddnwstr(
handle: WINDOW,
wstr: &WideString,
number: i32
) -> Result<(), NCurseswError>
Expand description
Add/Output a wide character unicode UTF-8 string of a given length on the given window.
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 wide_str = WideString::from_str("Testing..Testing..1..2..3..");
// this will output "Testing..Testing.." on the window `win`
waddnwstr(win, &wide_str, 18)?;
delwin(win)?;