macro_rules! cwritebln {
($writer:expr $(, $arg:tt)*) => { ... };
}Expand description
Writes farben-colored markup to a writer with a trailing newline, without appending a reset.
Styles bleed into subsequent output. Use when chaining multiple colored segments where you want the style to carry forward.
§Panics
Panics if the markup is invalid. Use [try_color] directly for error handling.
§Examples
use farben::prelude::*;
use std::io::{Write, Cursor};
let mut buf = Cursor::new(Vec::new());
cwritebln!(buf, "[bold red]Fatal error");
cwrite!(buf, "still bold and red here"); // inherits style