Function ncursesw::addchnstr [−][src]
pub fn addchnstr(chstr: &ChtypeString, number: i32) -> Result<(), NCurseswError>
Expand description
Add/Output a ascii character string and normal
attribute/color pair combination of a given length to the standard screen.
Example
extern crate ncursesw;
extern crate ascii;
use ascii::*;
use ncursesw::*;
use ncursesw::normal::*;
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.."
addchnstr(&chtype_str, 18)?;