Function ncursesw::mvaddch [−][src]
pub fn mvaddch(origin: Origin, ch: ChtypeChar) -> Result<(), NCurseswError>
Expand description
Add/Output a ascii character and normal
attribute/color pair combination to the standard screen at a given origin.
Example
extern crate ncursesw;
extern crate ascii;
use ascii::*;
use ncursesw::*;
use ncursesw::normal::*;
let origin = Origin { y: 5, x: 10 };
let color_pair0 = ColorPair::default();
let attrs = Attributes::default() | color_pair0;
let ascii_char = AsciiChar::A;
let chtype_char = ChtypeChar::new(ascii_char) | attrs;
mvaddch(origin, chtype_char)?;