Function ncursesw::mvaddchstr [−][src]
pub fn mvaddchstr(
origin: Origin,
chstr: &ChtypeString
) -> Result<(), NCurseswError>
Expand description
Add/Output a ascii character string 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_str = AsciiString::from_ascii("Testing..Testing..1..2..3..")?;
let chtype_str = ChtypeString::from_ascii_string(&ascii_str) | attrs;
// this will output "Testing..Testing..1..2..3.." at line 5, column 10
mvaddchstr(origin, &chtype_str)?;