Function ncursesw::mvwinsnstr[][src]

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

Insert a string of a given length on the given window at the 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 s = "Testing..Testing..1..2..3..";

// insert "Testing..Testing.." at line 5, column 10
mvwinsnstr(win, Origin { y: 5, x: 10 }, &s, 18)?;

delwin(win)?;