5 releases (3 breaking)
0.4.1 | Jan 30, 2024 |
---|---|
0.4.0 | Jan 30, 2024 |
0.3.0 | Jan 27, 2024 |
0.2.0 | May 18, 2023 |
0.1.0 | Jun 22, 2022 |
#462 in Command-line interface
389 downloads per month
Used in sos
13KB
286 lines
Terminal Banner
Tiny Rust library for rendering a boxed banner at the current terminal width wrapping each paragraph of text.
See the examples and the API docs.
License
MIT or Apache-2.0
lib.rs
:
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);
Dependencies
~3–15MB
~152K SLoC