Skip to main content

cprintb

Macro cprintb 

Source
macro_rules! cprintb {
    ($fmt:literal $(, $arg:expr)*) => { ... };
}
Expand description

Prints farben-colored markup to stdout without a 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::*;

cprintb!("[red]Error: ");
cprintln!("something went wrong"); // inherits red