#[derive(Clone, Debug)] struct Console { count: usize } use termtpl::ast::*; // If no input tpl is specified, we'll use this const EXAMPLE_TPL: &str = "{test_tag_1} someliteral {missing_tag} {newline!} literal start {another.tag} "; impl Print for Console { /// Console doesnt know how to print backward, but will skip lines if r > count fn print(&mut self, s: &str, r: usize, c: usize, style: Option