Macro libnotcurses_sys::putstr
source · macro_rules! putstr { ($plane:ident, $($args:tt)*) => { ... }; }
Expand description
Wrapper around NcPlane.putstr
,
rendering and rasterizing the plane afterwards.
Returns an NcResult
with the number of columns advanced,
with newlines counting as 1 column.
§Example
let nc = unsafe { Nc::new_cli()? };
let splane = unsafe { nc.stdplane() };
splane.set_scrolling(true);
assert_eq![12, putstr!(splane, "hello\nworld\n")?];
putstr!(splane, "formatted text: {:?}\n", (0, 1.0, "two") )?;