Function ncursesw::mvwins_wstr[][src]

pub fn mvwins_wstr(
    handle: WINDOW,
    origin: Origin,
    wstr: &WideString
) -> Result<(), NCurseswError>
Expand description

Insert a wide character string (unicode UTF-8) on the given window at a given origin.

All characters to the right of the cursor are shifted right, with the possibility of the rightmost characters on the line being lost. No wrapping is performed.

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

let wide_str = WideString::from_str("Testing..Testing..1..2..3..");

// insert "Testing..Testing..1..2.3.." at line 5, column 10 on the window `win`
mvwins_wstr(win, origin, &wide_str)?;

delwin(win)?;