Zero dependency crate for logging text that should stay in the same place in a console. This measures words to handle wrapping and has some console resizing support. For an example, this could be used for displaying progress bars or inputs.
Example use with the console crate:
```rs use consolestatictext::ConsoleStaticText; use consolestatictext::ConsoleStaticTextOptions;
let mut statictext = ConsoleStaticText::new( ConsoleStaticTextOptions { // I honestly haven't tested this stripansicodes: Box::new(console::stripansicodes), terminalwidth: Box::new(|| console::Term::stderr().size().1), }, );
statictext.eprint("initial\ntext"); // will clear the previous text and put this new text statictext.eprint("new text");
// or get the text manually if let Some(text) = statictext.getupdate_text("new text") { eprint!("{}", text); }
// clear out the previous text statictext.eprintclear(); ```