Macro libnotcurses_sys::putstrln
source · [−]macro_rules! putstrln {
($plane:ident) => { ... };
($plane:ident, $text:literal) => { ... };
($plane:ident, $text:literal, $($args:tt)*) => { ... };
}
Expand description
Wrapper around NcPlane.putstrln
.
rendering and rasterizing the plane afterwards.
Returns an NcResult
with the number of columns advanced,
without including newlines.
Example
let nc = unsafe { Nc::new_cli()? };
let splane = unsafe { nc.stdplane() };
splane.set_scrolling(true);
putstrln!(splane, "hello world")?;
putstrln!(splane, "formatted text: {:?}", (0, 1.0, "two") )?;