Function ncursesw::wins_wch[][src]

pub fn wins_wch(handle: WINDOW, wch: ComplexChar) -> Result<(), NCurseswError>
Expand description

Insert a complex character on the given window.

Insert the complex character with rendition before the character under the cursor. All characters to the right of the cursor are moved one space to the right, with the possibility of the rightmost character on the line being lost. The insertion operation does not change the cursor position.

Example

extern crate ncursesw;

use ncursesw::*;
use ncursesw::normal::*;

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

let win = newwin(win_size, win_origin)?;

let color_pair0 = ColorPair::default();
let attrs = Attributes::default();

let complex_char = ComplexChar::from_char('A', &attrs, &color_pair0)?;

wins_wch(win, complex_char)?;

delwin(win)?;