Crate terminal_banner
source ·Expand description
Tiny utility to render a boxed banner at the width of the terminal.
Use the color
feature to enable support for terminal colors,
see the examples for usage.
use terminal_banner::Banner;
let banner = Banner::new()
.text("LIPSUM".into())
.text("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.".into())
.render();
println!("{}", banner);
Structs§
- Render a terminal banner.
- Collection of box drawing symbols used to draw the banner outline.
- Padding inside the banner outline.
- Text content.
- Text style.
Enums§
- Variants for text alignment.